添加严格的域名访问限制
This commit is contained in:
@@ -736,6 +736,18 @@ export async function simpleRootLogin(
|
||||
});
|
||||
}
|
||||
|
||||
// 密码强度验证
|
||||
// const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/;
|
||||
// if (!passwordRegex.test(password.trim())) {
|
||||
// return new Response(JSON.stringify({
|
||||
// success: false,
|
||||
// error: "密码必须至少8位,包含大小写字母和数字"
|
||||
// }), {
|
||||
// status: 400,
|
||||
// headers: { "Content-Type": "application/json" }
|
||||
// });
|
||||
// }
|
||||
|
||||
// 调用登录接口
|
||||
const loginResponse = await fetch(`${API_BASE_URL}/password_login`, {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user