Skip to content

Commit 6cd6df0

Browse files
authored
Merge pull request #6 from wefloc/feat/new-errors
feat(global): new errors
2 parents 4e46045 + f3aa726 commit 6cd6df0

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/resources/signIn/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ const authentication: IErrorRes = {
1414
formInvalidPassword: {
1515
status: EHttpCode.BAD_REQUEST,
1616
},
17+
userNotFound: {
18+
status: EHttpCode.BAD_REQUEST,
19+
},
20+
wrongPassword: {
21+
status: EHttpCode.BAD_REQUEST,
22+
},
1723
},
1824
internal: {},
1925
external: {},

src/resources/signIn/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"client": {
33
"formInvalidEmail": "Invalid email",
4-
"formInvalidPassword": "Invalid password"
4+
"formInvalidPassword": "Invalid password",
5+
"userNotFound": "User not found",
6+
"wrongPassword": "Incorrect password"
57
},
68
"internal": {},
79
"external": {}

src/resources/signIn/locales/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"client": {
33
"formInvalidEmail": "Email invalide",
4-
"formInvalidPassword": "Mot de passe invalide"
4+
"formInvalidPassword": "Mot de passe invalide",
5+
"userNotFound": "Utilisateur introuvable",
6+
"wrongPassword": "Mot de passe incorrect"
57
},
68
"internal": {},
79
"external": {}

0 commit comments

Comments
 (0)