mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-05 19:18:25 -04:00
fix email check
This commit is contained in:
@@ -54,6 +54,11 @@ def get_login_gov_user(login_uuid, email_address):
|
|||||||
|
|
||||||
return user
|
return user
|
||||||
|
|
||||||
|
# Handle the case of the brand new user. We know their email from the
|
||||||
|
# invitation but need to related the login_uuid to it.
|
||||||
|
stmt = select(User).where(User.email_address.ilike(email_address))
|
||||||
|
user = db.session.execute(stmt).scalars().first()
|
||||||
|
|
||||||
if user:
|
if user:
|
||||||
save_user_attribute(user, {"login_uuid": login_uuid})
|
save_user_attribute(user, {"login_uuid": login_uuid})
|
||||||
return user
|
return user
|
||||||
|
|||||||
Reference in New Issue
Block a user