revert debugging code

This commit is contained in:
Kenneth Kehl
2025-03-14 09:03:52 -07:00
parent eaf6784236
commit 2370dfd2c1

View File

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