Compare commits
No commits in common. "fb542aa083d93a23c2fea3b8a7ee05032438a47c" and "bd24cf7035df3f291181539c4fe0ffa553439284" have entirely different histories.
fb542aa083
...
bd24cf7035
@ -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不能为空'}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user