forked from mrlan/EnglishPal
				
			Fix bug 528
							parent
							
								
									db66b59513
								
							
						
					
					
						commit
						1ded133056
					
				|  | @ -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') { | ||||
|  |  | |||
|  | @ -28,10 +28,6 @@ You're logged in already! <a href="/logout">Logout</a>. | |||
|                 alert('密码过于简单。(密码长度至少4位)'); | ||||
|                 return false; | ||||
|             } | ||||
| 	    if (password.includes(' ') || password2.includes(' ')) { | ||||
|         	alert('输入不能包含空格!'); | ||||
|         	return false; | ||||
|     	    } | ||||
|             $.post("/signup", {'username': username, 'password': password}, | ||||
|                 function (response) { | ||||
|                     if (response.status === '0') { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue