diff --git a/Application/Mobile/View/Ssg/login.html b/Application/Mobile/View/Ssg/login.html index e33e389ee..192b8e349 100644 --- a/Application/Mobile/View/Ssg/login.html +++ b/Application/Mobile/View/Ssg/login.html @@ -362,8 +362,15 @@ } if(phonepassword.length < 6 || phonepassword.length > 15){ alert('密码长度6-15个字符'); + return false; } + var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z]).{8,30}'); + if (!pwdRegex.test(phonepassword)) { + alert("您的密码复杂度太低(密码中必须包含字母、数字)!"); + return false; + } + if(phonecode == ''){ alert('请输入验证码'); return false; @@ -443,6 +450,11 @@ alert('密码长度6-15个字符'); return false; } + var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])'); + if (!pwdRegex.test(regpassword)) { + alert("您的密码复杂度太低(密码中必须包含字母、数字)!"); + return false; + } if(regpassword != regpassword2){ alert('两次密码不一样'); return false;