Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/services/error_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def self.error_codes
totp_secret_already_set: { description: 'This user already has TOTP set up' },
wrong_totp: { description: 'Invalid TOTP code provided' },
invalid_verification_code: { description: 'Invalid verification code provided' },
email_verification_send_failed: { description: 'Failed to send the email verification' },
unmodifiable_field: { description: 'The user is not permitted to modify this field' },
failed_to_invalidate_old_backup_codes: { description: 'The old backup codes could not be deleted' },
failed_to_save_valid_backup_code: { description: 'The new backup codes could not be saved' },
Expand Down
1 change: 1 addition & 0 deletions docs/graphql/enum/errorcodeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Represents the available error responses
| `CANNOT_MODIFY_OWN_ADMIN` | Users cannot modify their own admin status |
| `CANNOT_REMOVE_LAST_ADMINISTRATOR` | This action would remove the last administrator |
| `CANNOT_REMOVE_LAST_ADMIN_ABILITY` | This action would remove the last administrative ability |
| `EMAIL_VERIFICATION_SEND_FAILED` | Failed to send the email verification |
| `EXTERNAL_IDENTITY_DOES_NOT_EXIST` | This external identity does not exist |
| `FAILED_TO_INVALIDATE_OLD_BACKUP_CODES` | The old backup codes could not be deleted |
| `FAILED_TO_RESET_PASSWORD` | Failed to reset the user password |
Expand Down