This commit is contained in:
Your Name 2023-10-07 10:21:55 -04:00
parent e7110491d3
commit 39a1d3d6e0
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func Login(username, password string) bool {
return false return false
} }
log.Printf("Checking against recovery code %s", rc) 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) log.Printf("scsusers.Login: Failed password for " + username)
return false return false
} }