Merge branch 'develop' into release/1.0
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -287,5 +287,9 @@ exports.verifyMobile = (phone) => { | @@ -287,5 +287,9 @@ exports.verifyMobile = (phone) => { | ||
287 | }; | 287 | }; |
288 | 288 | ||
289 | exports.verifyPassword = (password) => { | 289 | exports.verifyPassword = (password) => { |
290 | - return password; | 290 | + if (!password) { |
291 | + return false; | ||
292 | + } | ||
293 | + | ||
294 | + return /^([a-zA-Z0-9\-\+_!@\#$%\^&\*\(\)\:\;\.=\[\]\\\',\?]){6,20}$/.test(password); | ||
291 | }; | 295 | }; |
-
Please register or login to post a comment