diff --git a/app/templates/reset.html b/app/templates/reset.html
index 223b902..408e001 100644
--- a/app/templates/reset.html
+++ b/app/templates/reset.html
@@ -24,10 +24,6 @@
alert('密码过于简单。(密码长度至少4位)');
return false;
}
- if (old_password.includes(' ') || new_password.includes(' ')) {
- alert('输入不能包含空格!');
- return false;
- }
$.post("/reset", {'old-password': old_password, 'new-password': new_password},
function (response) {
if (response.status === '1') {
diff --git a/app/templates/signup.html b/app/templates/signup.html
index d525154..6b5db6e 100644
--- a/app/templates/signup.html
+++ b/app/templates/signup.html
@@ -28,10 +28,6 @@ You're logged in already! Logout.
alert('密码过于简单。(密码长度至少4位)');
return false;
}
- if (password.includes(' ') || password2.includes(' ')) {
- alert('输入不能包含空格!');
- return false;
- }
$.post("/signup", {'username': username, 'password': password},
function (response) {
if (response.status === '0') {