Skip to content

Commit

Permalink
Merge pull request #6 from wefloc/feat/new-errors
Browse files Browse the repository at this point in the history
feat(global): new errors
  • Loading branch information
rimiti authored Sep 25, 2021
2 parents 4e46045 + f3aa726 commit 6cd6df0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/resources/signIn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ const authentication: IErrorRes = {
formInvalidPassword: {
status: EHttpCode.BAD_REQUEST,
},
userNotFound: {
status: EHttpCode.BAD_REQUEST,
},
wrongPassword: {
status: EHttpCode.BAD_REQUEST,
},
},
internal: {},
external: {},
Expand Down
4 changes: 3 additions & 1 deletion src/resources/signIn/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"client": {
"formInvalidEmail": "Invalid email",
"formInvalidPassword": "Invalid password"
"formInvalidPassword": "Invalid password",
"userNotFound": "User not found",
"wrongPassword": "Incorrect password"
},
"internal": {},
"external": {}
Expand Down
4 changes: 3 additions & 1 deletion src/resources/signIn/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"client": {
"formInvalidEmail": "Email invalide",
"formInvalidPassword": "Mot de passe invalide"
"formInvalidPassword": "Mot de passe invalide",
"userNotFound": "Utilisateur introuvable",
"wrongPassword": "Mot de passe incorrect"
},
"internal": {},
"external": {}
Expand Down

0 comments on commit 6cd6df0

Please sign in to comment.