more
This commit is contained in:
1 parent
e7110491d3
commit
39a1d3d6e0
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user