From 08b9a84c8416d4d70383e0a2ef80386ed84fb70a Mon Sep 17 00:00:00 2001 From: Jacob Wood Date: Sat, 26 Dec 2015 16:40:00 -0500 Subject: [PATCH] Fixed email checking error --- server/api/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/user.py b/server/api/user.py index 24396ec..4efd811 100644 --- a/server/api/user.py +++ b/server/api/user.py @@ -23,7 +23,7 @@ def user_register(): email = request.form["email"] 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: return { "success": 0, "message": "Passwords do not match." }