修复 user 登录bug

This commit is contained in:
王思川 2022-02-08 10:14:37 +08:00
parent 28062228de
commit 40fedc07ac
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def login_impl(email, pwd, vcode):
user_info = FIND_DATA('用户', '用户信息', {"email": email}) user_info = FIND_DATA('用户', '用户信息', {"email": email})
def check_email(): def check_email():
if user_info is []: if not user_info:
return "不存在该邮箱" return "不存在该邮箱"
if not check_mail_fmt(email): if not check_mail_fmt(email):
return "邮箱格式错误" return "邮箱格式错误"