Skip to content

Commit

Permalink
feat: add failure message key for not validated members (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
Defferrard authored Jul 9, 2024
1 parent 0bb50aa commit 98eb83e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export const FAILURE_MESSAGES = {
// sharing item
COPY_LINK_TO_CLIPBOARD_ERROR: 'COPY_LINK_TO_CLIPBOARD_ERROR',

// auth
INSUFFICIENT_PERMISSION: 'INSUFFICIENT_PERMISSION',
NOT_VALIDATED_MEMBER: 'NOT_VALIDATED_MEMBER',

// password
PASSWORD_EMPTY_ERROR: 'Please enter a valid password',
PASSWORD_WEAK_ERROR: '"New Password" not strong enough',
Expand Down
4 changes: 3 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,7 @@
"DELETE_ITEM_GEOLOCATION": "The geolocation has been deleted successfully",
"DELETE_ITEM_THUMBNAIL": "The thumbnail was successfully deleted",
"REORDER_ITEM": "The item was successfully reordered",
"MEMBER_PROFILE_NOT_FOUND": "Member profile not found"
"MEMBER_PROFILE_NOT_FOUND": "Member profile not found",
"INSUFFICIENT_PERMISSION": "Account has insufficient permission to perform this action",
"NOT_VALIDATED_MEMBER": "Member has not validated their account email"
}

0 comments on commit 98eb83e

Please sign in to comment.