From 5a06083f445b05dcbe1f60eca46db9726dd2fb0f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 21:25:30 +0000 Subject: [PATCH 1/2] Initial plan From b6a357ad6a85d668582464c18e620b40e6e5c062 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 21:30:01 +0000 Subject: [PATCH 2/2] Add missing email_verification_send_failed error code Co-authored-by: Knerio <96529060+Knerio@users.noreply.github.com> --- app/services/error_code.rb | 1 + docs/graphql/enum/errorcodeenum.md | 1 + 2 files changed, 2 insertions(+) diff --git a/app/services/error_code.rb b/app/services/error_code.rb index 1dddcf7c..887abf65 100644 --- a/app/services/error_code.rb +++ b/app/services/error_code.rb @@ -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' }, diff --git a/docs/graphql/enum/errorcodeenum.md b/docs/graphql/enum/errorcodeenum.md index 54d74027..8a501c14 100644 --- a/docs/graphql/enum/errorcodeenum.md +++ b/docs/graphql/enum/errorcodeenum.md @@ -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 |