Skip to content

Commit a97881e

Browse files
committed
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 a97881e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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: 2 additions & 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 |
@@ -52,6 +53,7 @@ Represents the available error responses
5253
| `NAMESPACE_ROLE_NOT_FOUND` | The namespace role with the given identifier was not found |
5354
| `NO_FREE_LICENSE_SEATS` | There are no free license seats to complete this operation |
5455
| `NO_PRIMARY_RUNTIME` | The project does not have a primary runtime |
56+
| `ORGANIZATION_NOT_FOUND` | The organization with the given identifier was not found |
5557
| `PRIMARY_LEVEL_NOT_FOUND` | **Deprecated:** Outdated concept |
5658
| `PROJECT_NOT_FOUND` | The namespace project with the given identifier was not found |
5759
| `REGISTRATION_DISABLED` | Self-registration is disabled |

0 commit comments

Comments
 (0)