From 2370dfd2c134938a83f6490fa83f1d76592ad7d2 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 14 Mar 2025 09:03:52 -0700 Subject: [PATCH] revert debugging code --- app/user/rest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/user/rest.py b/app/user/rest.py index 02dcfbc08..da86521ff 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -285,10 +285,9 @@ def complete_login_after_webauthn_authentication_attempt(user_id): def send_user_2fa_code(user_id, code_type): user_to_send_to = get_user_by_id(user_id=user_id) - if count_user_verify_codes(user_to_send_to) >= 1000000: - # if count_user_verify_codes(user_to_send_to) >= current_app.config.get( - # "MAX_VERIFY_CODE_COUNT" - # ): + if count_user_verify_codes(user_to_send_to) >= current_app.config.get( + "MAX_VERIFY_CODE_COUNT" + ): # Prevent more than `MAX_VERIFY_CODE_COUNT` active verify codes at a time current_app.logger.warning( "Too many verify codes created for user {}".format(user_to_send_to.id)