Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/src/common/utils/auth-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { AuthError } from '../models/auth';
*/
export const AUTH_ERROR_MESSAGES: Record<string, string> = {
// Sign In errors
'UserNotFoundException': 'The email address or password you entered is incorrect.',
'NotAuthorizedException': 'The email address or password you entered is incorrect.',
'UserNotFoundException': 'Incorrect email or password.',
'NotAuthorizedException': 'Incorrect email or password.',
'UserNotConfirmedException': 'Please check your email to verify your account.',
'PasswordResetRequiredException': 'You need to reset your password. Please check your email.',

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

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/common/utils/i18n/resources/en/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"numeric": "Must contain only numbers",
"exact-length": "Must be exactly {{length}} characters",
"passwords-match": "Passwords must match",
"email": "Please enter a valid email address",
"email": "Please provide a valid email address (e.g., [email protected]).",
"required": "This field is required",
"min-length": "Must be at least {{length}} characters",
"max-length": "Must be at most {{length}} characters",
Expand Down
Loading