同步历史版本代码

This commit is contained in:
2026-03-03 09:32:22 -08:00
parent 7d46b31866
commit 4d8516b2e1
140 changed files with 8399 additions and 489 deletions
+2
View File
@@ -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)
}