booleans are hard
This commit is contained in:
parent
11de0b4a2a
commit
9876e264ff
2
main.go
2
main.go
|
@ -96,7 +96,7 @@ func Login(username, password string) bool {
|
||||||
log.Println("Failed login attempt for unknown username: " + username)
|
log.Println("Failed login attempt for unknown username: " + username)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if bcrypt.CompareHashAndPassword([]byte(crypt), []byte(password)) == nil {
|
if bcrypt.CompareHashAndPassword([]byte(crypt), []byte(password)) != nil {
|
||||||
log.Println("Failed password for " + username)
|
log.Println("Failed password for " + username)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue