Skip to content

Commit

Permalink
feat: email already taken failure message (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Defferrard authored Jun 25, 2024
1 parent d90ce30 commit 8000c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const FAILURE_MESSAGES = {
ORPHAN_SESSION: 'ORPHAN_SESSION',
DATABASE_ERROR: 'DATABASE_ERROR',
UNEXPECTED_ERROR: 'UNEXPECTED_ERROR',
EMAIL_ALREADY_TAKEN: 'EMAIL_ALREADY_TAKEN',

FILE_IS_NOT_IMAGE: 'FILE_IS_NOT_IMAGE',

Expand Down
1 change: 1 addition & 0 deletions src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"ORPHAN_SESSION": "Your session has expired",
"DATABASE_ERROR": "An unexpected error occurred at the database level",
"UNEXPECTED_ERROR": "An unexpected error occurred",
"EMAIL_ALREADY_TAKEN": "This email is already taken",

"STORAGE_EXCEEDED": "You exceeded your allowed file storage",
"FILE_SIZE_NOT_FOUND": "The file size could not be calculated",
Expand Down

0 comments on commit 8000c9d

Please sign in to comment.