From f27d53116e42b0b738ae2bde241d748a2bbb6b36 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 28 Aug 2024 07:17:13 -0700 Subject: [PATCH] increase debug --- app/main/views/sign_in.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main/views/sign_in.py b/app/main/views/sign_in.py index 1db0fa9be..763a863d8 100644 --- a/app/main/views/sign_in.py +++ b/app/main/views/sign_in.py @@ -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"