Skip to content

Commit 9dbba3a

Browse files
[ADE-137] - Update auth error messages for clarity and improve email validation prompt
1 parent 0ab0fec commit 9dbba3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/common/utils/auth-errors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { AuthError } from '../models/auth';
55
*/
66
export const AUTH_ERROR_MESSAGES: Record<string, string> = {
77
// Sign In errors
8-
'UserNotFoundException': 'The email address or password you entered is incorrect.',
9-
'NotAuthorizedException': 'The email address or password you entered is incorrect.',
8+
'UserNotFoundException': 'Incorrect email or password.',
9+
'NotAuthorizedException': 'Incorrect email or password.',
1010
'UserNotConfirmedException': 'Please check your email to verify your account.',
1111
'PasswordResetRequiredException': 'You need to reset your password. Please check your email.',
1212

1313
// Sign Up errors
14-
'UsernameExistsException': 'This email address is already associated with an account. Please sign in or reset your password.',
14+
'UsernameExistsException': 'This email is already linked to an account. Please sign in or reset your password.',
1515
'InvalidPasswordException': 'Password does not meet the requirements. Please use a stronger password.',
1616
'InvalidParameterException': 'Please check your input and try again.',
1717

frontend/src/common/utils/i18n/resources/en/auth.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"numeric": "Must contain only numbers",
7171
"exact-length": "Must be exactly {{length}} characters",
7272
"passwords-match": "Passwords must match",
73-
"email": "Please enter a valid email address",
73+
"email": "Please provide a valid email address (e.g., [email protected]).",
7474
"required": "This field is required",
7575
"min-length": "Must be at least {{length}} characters",
7676
"max-length": "Must be at most {{length}} characters",

0 commit comments

Comments
 (0)