mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-26 18:32:15 -04:00
increase debug
This commit is contained in:
@@ -151,7 +151,7 @@ def _handle_e2e_tests(redirect_url):
|
||||
@main.route("/sign-in", methods=(["GET", "POST"]))
|
||||
@hide_from_search_engines
|
||||
def sign_in():
|
||||
|
||||
print("ENTER SIGN IN")
|
||||
if os.getenv("NOTIFY_E2E_TEST_EMAIL"):
|
||||
current_app.logger.warning("E2E TESTS ARE ENABLED.")
|
||||
current_app.logger.warning(
|
||||
@@ -159,7 +159,11 @@ def sign_in():
|
||||
)
|
||||
user = user_api_client.get_user_by_email(os.getenv("NOTIFY_E2E_TEST_EMAIL"))
|
||||
activate_user(user["id"])
|
||||
print("USER ACTIVATED!!")
|
||||
return redirect(url_for("main.show_accounts_or_dashboard"))
|
||||
else:
|
||||
print("DID NOT FIND NOTIFY_E2E_TESET_EMAIL IN o.sgetenv")
|
||||
abort(404) #?
|
||||
|
||||
# If we have to revalidated the email, send the message
|
||||
# via email and redirect to the "verify your email page"
|
||||
|
||||
Reference in New Issue
Block a user