同步历史版本代码
This commit is contained in:
@@ -50,6 +50,8 @@ 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
|
||||
case "default": // PPanel's default algorithm
|
||||
return VerifyPassWord(password, hash)
|
||||
default:
|
||||
return VerifyPassWord(password, hash)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user