修复 user 登录bug
This commit is contained in:
parent
28062228de
commit
40fedc07ac
|
@ -100,7 +100,7 @@ def login_impl(email, pwd, vcode):
|
|||
user_info = FIND_DATA('用户', '用户信息', {"email": email})
|
||||
|
||||
def check_email():
|
||||
if user_info is []:
|
||||
if not user_info:
|
||||
return "不存在该邮箱"
|
||||
if not check_mail_fmt(email):
|
||||
return "邮箱格式错误"
|
||||
|
|
Loading…
Reference in New Issue