Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(login): display correct message when provided information are inc…
Browse files Browse the repository at this point in the history
…orrect
  • Loading branch information
rhahao committed Feb 6, 2022
1 parent 23749b7 commit c6fd8d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/root/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ const Login = () => {
if (
data.message === 'EMAIL_NOT_FOUND' ||
data.message === 'INVALID_EMAIL' ||
data.message === 'INVALID_PASSWORD' ||
data.message === 'MISSING_EMAIL'
) {
warnMsg = t('login.accountNotFound');
} else if (data.message === 'INVALID_PASSWORD') {
warnMsg = t('login.incorrectInfo');
} else if (data.message === 'USER_DISABLED') {
warnMsg = t('login.accountDisabled');
} else if (
Expand Down
1 change: 1 addition & 0 deletions src/locales/e.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"login.accountResendLink": "Resend verification email",
"login.accountNewLink": "The verification email has been resent",
"login.hostBlocked": "This device has been blocked from making any requests, try again later",
"login.incorrectInfo": "Your username or password is incorrect",

"administration.congregationAccount": "CONGREGATION ACCOUNT",
"administration.congConnectInfo": "CONNECTION INFORMATION",
Expand Down
1 change: 1 addition & 0 deletions src/locales/mg.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"login.accountResendLink": "Hamerina handefa ny hafatra fanamarinana",
"login.accountNewLink": "Naverina nalefa ny hafatra fanamarinana ny kaontinao",
"login.hostBlocked": "Tsy mbola afaka manao fangatahana ity fitaovana ity izao, andramo indray rehefa afaka kelikely",
"login.incorrectInfo": "Diso ny adiresy email na ny teny miafina nampidirinao",

"administration.congregationAccount": "KAONTIN’NY FIANGONANA",
"administration.congConnectInfo": "FANAZAVANA AMIN’NY FAMPIASANA INTERNET",
Expand Down

0 comments on commit c6fd8d8

Please sign in to comment.