diff --git a/main.go b/main.go index 059500c..9acd0eb 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func Login(username, password string) bool { log.Println("Failed login attempt for unknown username: " + username) return false } - if bcrypt.CompareHashAndPassword([]byte(crypt), []byte(password)) == nil { + if bcrypt.CompareHashAndPassword([]byte(crypt), []byte(password)) != nil { log.Println("Failed password for " + username) return false }