Skip to content

Commit 152e74e

Browse files
CopilotKnerio
andcommitted
Add missing invalid_totp_secret error code to error_codes hash
Co-authored-by: Knerio <96529060+Knerio@users.noreply.github.com>
1 parent bc05b99 commit 152e74e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/services/error_code.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def self.error_codes
3030
mfa_required: { description: 'MFA is required' },
3131
invalid_login_data: { description: 'Invalid login data provided' },
3232
totp_secret_already_set: { description: 'This user already has TOTP set up' },
33+
invalid_totp_secret: { description: 'The TOTP secret is invalid or cannot be verified' },
3334
wrong_totp: { description: 'Invalid TOTP code provided' },
3435
invalid_verification_code: { description: 'Invalid verification code provided' },
3536
unmodifiable_field: { description: 'The user is not permitted to modify this field' },

0 commit comments

Comments
 (0)