booleans are hard

This commit is contained in:
scs 2018-12-27 22:14:30 +00:00
parent 11de0b4a2a
commit 9876e264ff
1 changed files with 1 additions and 1 deletions

View File

@ -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
}