mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-26 20:41:53 -05:00
Trying to get invites to flow correctly.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -52,15 +52,22 @@ def get_login_gov_user(login_uuid, email_address):
|
||||
current_app.logger.exception("Error getting login.gov user")
|
||||
db.session.rollback()
|
||||
|
||||
print("In here instead!")
|
||||
return user
|
||||
# Remove this 1 July 2025, all users should have login.gov uuids by now
|
||||
stmt = select(User).filter(User.email_address.ilike(email_address))
|
||||
user = db.session.execute(stmt).scalars().first()
|
||||
|
||||
print("*" * 80)
|
||||
print(user)
|
||||
|
||||
if user:
|
||||
print(f"login_uuid: {login_uuid}")
|
||||
save_user_attribute(user, {"login_uuid": login_uuid})
|
||||
return user
|
||||
|
||||
print("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WTF")
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user