Authored by ccbikai

Merge branch 'develop' into release/1.0

@@ -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 };