We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b921c1b + 1826642 commit 0c08b56Copy full SHA for 0c08b56
app/dao/users_dao.py
@@ -54,6 +54,11 @@ def get_login_gov_user(login_uuid, email_address):
54
55
return user
56
57
+ # Handle the case of the brand new user. We know their email from the
58
+ # invitation but need to related the login_uuid to it.
59
+ stmt = select(User).where(User.email_address.ilike(email_address))
60
+ user = db.session.execute(stmt).scalars().first()
61
+
62
if user:
63
save_user_attribute(user, {"login_uuid": login_uuid})
64
0 commit comments