Skip to content

Commit f141a3d

Browse files
authored
Merge pull request #678 from code0-tech/copilot/sub-pr-670-another-one
Add missing invalid_totp_secret error code definition
2 parents 6d279ab + 152e74e commit f141a3d

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)