From fbd025d8df316248253d7e30fe0016570a3e9b2a Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Fri, 5 Jun 2026 20:26:30 +0530 Subject: [PATCH] fix: add USER_EMAIL_NOT_CORPORATE entry to errors.php --- app/config/errors.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/config/errors.php b/app/config/errors.php index 4a6f08d432..a548d75179 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -241,6 +241,11 @@ return [ 'description' => 'This email address must already be in its canonical form. Please remove aliases, tags, or provider-specific variations and try again.', 'code' => 400, ], + Exception::USER_EMAIL_NOT_CORPORATE => [ + 'name' => Exception::USER_EMAIL_NOT_CORPORATE, + 'description' => 'Only corporate email addresses are allowed. Please use a work email address and try again.', + 'code' => 400, + ], Exception::USER_PASSWORD_MISMATCH => [ 'name' => Exception::USER_PASSWORD_MISMATCH, 'description' => 'Passwords do not match. Please check the password and confirm password.',