diff --git a/src/constants/messages.ts b/src/constants/messages.ts index 5f420fe8..6353f0e0 100644 --- a/src/constants/messages.ts +++ b/src/constants/messages.ts @@ -90,6 +90,8 @@ export const FAILURE_MESSAGES = { 'Please enter a new password different from your current one', PASSWORD_CONFIRM_ERROR: 'Please make sure "New Password" matches "Confirm password"', + PASSWORD_NOT_DEFINED_ERROR: 'PASSWORD_NOT_DEFINED_ERROR', + PASSWORD_CONFLICT_ERROR: 'PASSWORD_CONFLICT_ERROR', // short links SHORT_LINK_ALREADY_EXISTS: 'SHORT_LINK_ALREADY_EXISTS', diff --git a/src/langs/en/messages.json b/src/langs/en/messages.json index 4f4419be..78b217f2 100644 --- a/src/langs/en/messages.json +++ b/src/langs/en/messages.json @@ -104,6 +104,8 @@ "PASSWORD_WEAK_ERROR": "The new password is not strong enough", "PASSWORD_EQUAL_ERROR": "Please enter a new password different from your current one", "PASSWORD_CONFIRM_ERROR": "Please make sure the new password matches the confirmation", + "PASSWORD_NOT_DEFINED_ERROR": "Password is not defined", + "PASSWORD_CONFLICT_ERROR": "A password already exists, please update the password instead of creating a new one.", "INVALID_PASSWORD": "Current password is invalid. Please try again", "EMPTY_CURRENT_PASSWORD": "You forgot to input your current password. Please try again", "REQUEST_MESSAGES_IMPORT_ZIP": "The ZIP file is being processed. Please wait a moment.",