Fixing tests, and resend invites endpoint.

Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-11-01 12:12:04 -04:00
parent fc09e70579
commit b532ce8959
3 changed files with 37 additions and 8 deletions

View File

@@ -109,7 +109,7 @@ def _do_login_dot_gov(): # $ pragma: no cover
raise Exception(f"Could not login with login.gov {login_gov_error}")
elif code and state:
state_key = f"login-state-{unquote(state)}"
stored_state = redis_client.get(state_key).decode("utf8")
stored_state = unquote(redis_client.get(state_key).decode("utf8"))
if state != stored_state:
current_app.logger.error(f"State Error: {state} != {stored_state}")
abort(403)