increase debug

This commit is contained in:
Kenneth Kehl
2024-08-28 07:17:13 -07:00
parent 664d07b414
commit f27d53116e

View File

@@ -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"