请查看CHANGELOG.md获取更新信息
This commit is contained in:
1 parent
bf772046cc
commit
9bb6e6a41e
18 files changed
+879
-105
No files matched your search
+7
-2
@@ -18,7 +18,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
} elseif (hp_login($username, $password, (string) ($_POST['dev'] ?? ''))) {
|
||||
// 正常登录成功:清零本 IP 风控计数(避免携带历史失败次数,防止管理员自误封)
|
||||
risk_clear_for_ip($curIp);
|
||||
header('Location: nav.php');
|
||||
// 初始密码未修改:强制进入改密页
|
||||
if (hp_password_needs_change($username)) {
|
||||
header('Location: force_password.php');
|
||||
} else {
|
||||
header('Location: nav.php');
|
||||
}
|
||||
exit;
|
||||
} else {
|
||||
// 轻量防爆破延时(命中黑名单的 IP 在访问本页前即被 access_boot 拦截)
|
||||
@@ -33,7 +38,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
}
|
||||
|
||||
$site = setting_get('site_name', '知识导航站');
|
||||
$site = setting_get('site_name', 'SecHome');
|
||||
layout_head('后台登录');
|
||||
?>
|
||||
<main class="login-page">
|
||||
|
||||
Reference in new issue
Block a user