booleans are hard
This commit is contained in:
1 parent
11de0b4a2a
commit
9876e264ff
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user