From 6281bdd3e3000a8285c9b5e5363c0876a5b027fa Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 18 Apr 2024 13:33:17 -0700 Subject: [PATCH] make email_address check case insensitive --- app/dao/users_dao.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/dao/users_dao.py b/app/dao/users_dao.py index 048c7ea22..d5ea2dde7 100644 --- a/app/dao/users_dao.py +++ b/app/dao/users_dao.py @@ -54,7 +54,8 @@ def get_login_gov_user(login_uuid, email_address): return user # Remove this 1 July 2025, all users should have login.gov uuids by now - user = User.query.filter_by(email_address=email_address).first() + user = User.query.filter(User.email_address.ilike(email_address)).first() + print(f"USER IS {user.email_address}") if user: save_user_attribute(user, {"login_uuid": login_uuid}) return user