三大场景接入人机验证:新增captcha_guard.php统一校验库与CAPTCHA_PROVIDER配置,管理员登录/用户后台账密登录/正版验证浏览器提交三处接入;captcha_keys.php清空为可入库的空模板并加填写说明,部署脚本排除密钥文件防覆盖线上真值

This commit is contained in:
ypsdf1
2026-10-01 13:38:29 +08:00
parent 4f498a80c6
commit 17d53c40a0
9 changed files with 579 additions and 5 deletions
+2
View File
@@ -104,6 +104,8 @@ function adminDoLogin() {
}
$password = getParam('password');
if (!$password) exit(json_encode(['success' => false, 'message' => 'Missing password'], JSON_UNESCAPED_UNICODE));
// ★ 人机验证码(2026-10-02):放在限速之后、比对密码之前(不通过就不消耗密码尝试次数)
cgEnforce('admin_login');
if (adminLogin($password)) {
if (function_exists('secThrottleReset')) secThrottleReset('login_fail', $ip);
if (function_exists('secLog')) secLog('login_pass', 'password_ok');