Showing
1 changed file
with
8 additions
and
2 deletions
@@ -119,8 +119,14 @@ class RegisterNew { | @@ -119,8 +119,14 @@ class RegisterNew { | ||
119 | return; | 119 | return; |
120 | } | 120 | } |
121 | 121 | ||
122 | - if (!validatePWD(password)) { | ||
123 | - showErrTip('密码6-20位,请重新输入'); | 122 | + let validateResult = validatePWD(password, result => { |
123 | + if (!result.valid) { | ||
124 | + showErrTip(result.msg); | ||
125 | + } | ||
126 | + return result.valid; | ||
127 | + }); | ||
128 | + | ||
129 | + if (!validateResult) { | ||
124 | return; | 130 | return; |
125 | } | 131 | } |
126 | 132 |
-
Please register or login to post a comment