more
This commit is contained in:
parent
e7110491d3
commit
39a1d3d6e0
2
auth.go
2
auth.go
|
@ -21,7 +21,7 @@ func Login(username, password string) bool {
|
|||
return false
|
||||
}
|
||||
log.Printf("Checking against recovery code %s", rc)
|
||||
if bcrypt.CompareHashAndPassword([]byte(u.Password), []byte(rc)) != nil {
|
||||
if bcrypt.CompareHashAndPassword([]byte(rc), []byte(password)) != nil {
|
||||
log.Printf("scsusers.Login: Failed password for " + username)
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue