From a5449783495be719184c8ff9adbacd1d9e3337c1 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Thu, 17 Oct 2019 19:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=86=E7=A0=81=E5=A4=8D?= =?UTF-8?q?=E6=9D=82=E5=BA=A6=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Mobile/View/Ssg/login.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;