mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -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")
|
current_app.logger.exception("Error getting login.gov user")
|
||||||
db.session.rollback()
|
db.session.rollback()
|
||||||
|
|
||||||
|
print("In here instead!")
|
||||||
return user
|
return user
|
||||||
# Remove this 1 July 2025, all users should have login.gov uuids by now
|
# Remove this 1 July 2025, all users should have login.gov uuids by now
|
||||||
stmt = select(User).filter(User.email_address.ilike(email_address))
|
stmt = select(User).filter(User.email_address.ilike(email_address))
|
||||||
user = db.session.execute(stmt).scalars().first()
|
user = db.session.execute(stmt).scalars().first()
|
||||||
|
|
||||||
|
print("*" * 80)
|
||||||
|
print(user)
|
||||||
|
|
||||||
if user:
|
if user:
|
||||||
|
print(f"login_uuid: {login_uuid}")
|
||||||
save_user_attribute(user, {"login_uuid": login_uuid})
|
save_user_attribute(user, {"login_uuid": login_uuid})
|
||||||
return user
|
return user
|
||||||
|
|
||||||
|
print("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WTF")
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user