Fixed email checking error
This commit is contained in:
parent
e4aac48fe6
commit
08b9a84c84
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def user_register():
|
||||||
email = request.form["email"]
|
email = request.form["email"]
|
||||||
|
|
||||||
username_exists = Users.query.add_columns("name", "uid").filter_by(username_lower=username.lower()).first()
|
username_exists = Users.query.add_columns("name", "uid").filter_by(username_lower=username.lower()).first()
|
||||||
email_exists = Users.query.add_columns("name", "uid").filter_by(email=email).first()
|
email_exists = Users.query.add_columns("name", "uid").filter_by(email=email.lower()).first()
|
||||||
|
|
||||||
if password != password_confirm:
|
if password != password_confirm:
|
||||||
return { "success": 0, "message": "Passwords do not match." }
|
return { "success": 0, "message": "Passwords do not match." }
|
||||||
|
|
Loading…
Reference in a new issue