fix bug: Login failed for old user
This commit is contained in:
parent
b2045a6e1b
commit
9ab63dff88
@ -52,6 +52,7 @@ func MultiPasswordVerify(algo, salt, password, hash string) bool {
|
||||
// Bcrypt (corresponding to PHP's password_hash/password_verify)
|
||||
err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
|
||||
return err == nil
|
||||
default:
|
||||
return VerifyPassWord(password, hash)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user