Skip to content

Commit 312798c

Browse files
authored
Merge pull request #680 from code0-tech/copilot/sub-pr-670-one-more-time
Add missing email_verification_send_failed error code definition
2 parents 54d0b4d + b6a357a commit 312798c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/services/error_code.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def self.error_codes
3333
invalid_totp_secret: { description: 'The TOTP secret is invalid or cannot be verified' },
3434
wrong_totp: { description: 'Invalid TOTP code provided' },
3535
invalid_verification_code: { description: 'Invalid verification code provided' },
36+
email_verification_send_failed: { description: 'Failed to send the email verification' },
3637
unmodifiable_field: { description: 'The user is not permitted to modify this field' },
3738
failed_to_invalidate_old_backup_codes: { description: 'The old backup codes could not be deleted' },
3839
failed_to_save_valid_backup_code: { description: 'The new backup codes could not be saved' },

docs/graphql/enum/errorcodeenum.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Represents the available error responses
1111
| `CANNOT_MODIFY_OWN_ADMIN` | Users cannot modify their own admin status |
1212
| `CANNOT_REMOVE_LAST_ADMINISTRATOR` | This action would remove the last administrator |
1313
| `CANNOT_REMOVE_LAST_ADMIN_ABILITY` | This action would remove the last administrative ability |
14+
| `EMAIL_VERIFICATION_SEND_FAILED` | Failed to send the email verification |
1415
| `EXTERNAL_IDENTITY_DOES_NOT_EXIST` | This external identity does not exist |
1516
| `FAILED_TO_INVALIDATE_OLD_BACKUP_CODES` | The old backup codes could not be deleted |
1617
| `FAILED_TO_RESET_PASSWORD` | Failed to reset the user password |

0 commit comments

Comments
 (0)