Compare commits

..

No commits in common. "fb542aa083d93a23c2fea3b8a7ee05032438a47c" and "bd24cf7035df3f291181539c4fe0ffa553439284" have entirely different histories.

View File

@ -26,9 +26,8 @@ async def registerUser(ns):
ns['username'] = ns['mobile']
if ns.get('password'):
# 至少8位包含大小写字母、特殊字符、数字
if len(ns.get('password')) < 8 or not re.search(r'[a-zA-Z]', ns.get('password')) or not re.search(r'[0-9]', ns.get('password')) or not re.search(r'[!@#$%^&*()_+{}|:"<>?]', ns.get('password')):
return {'status': False, 'msg': '密码至少8位包含大小写字母、特殊字符、数字'}
if len(ns.get('password')) < 6:
return {'status': False, 'msg': '密码必须6位数以上'}
if not ns.get('codeid'):
return {'status': False, 'msg': '验证码ID不能为空'}