mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
revert debugging code
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user