Fix bug 528

Bug528-TangJiao
唐娇 2024-04-15 06:23:48 +08:00
parent db66b59513
commit 1ded133056
2 changed files with 0 additions and 8 deletions

View File

@ -24,10 +24,6 @@
alert('密码过于简单。(密码长度至少4位)'); alert('密码过于简单。(密码长度至少4位)');
return false; return false;
} }
if (old_password.includes(' ') || new_password.includes(' ')) {
alert('输入不能包含空格!');
return false;
}
$.post("/reset", {'old-password': old_password, 'new-password': new_password}, $.post("/reset", {'old-password': old_password, 'new-password': new_password},
function (response) { function (response) {
if (response.status === '1') { if (response.status === '1') {

View File

@ -28,10 +28,6 @@ You're logged in already! <a href="/logout">Logout</a>.
alert('密码过于简单。(密码长度至少4位)'); alert('密码过于简单。(密码长度至少4位)');
return false; return false;
} }
if (password.includes(' ') || password2.includes(' ')) {
alert('输入不能包含空格!');
return false;
}
$.post("/signup", {'username': username, 'password': password}, $.post("/signup", {'username': username, 'password': password},
function (response) { function (response) {
if (response.status === '0') { if (response.status === '0') {