Skip to content

Commit

Permalink
Add Toast Messages for Bad Logins (#1874)
Browse files Browse the repository at this point in the history
* Added toast prompts

* Using generic  message instead.

---------

Co-authored-by: Jacob Rosenzweig <[email protected]>
Co-authored-by: SleeplessOne1917 <[email protected]>
  • Loading branch information
3 people authored Jul 12, 2023
1 parent 2911cd8 commit 7a804ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/components/home/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ export class Login extends Component<any, State> {
i.setState({ showTotp: true });
toast(I18NextService.i18n.t("enter_two_factor_code"), "info");
}
if (loginRes.msg === "incorrect_login") {
toast(I18NextService.i18n.t("incorrect_login"), "danger");
}

i.setState({ loginRes: { state: "failed", msg: loginRes.msg } });
break;
Expand Down

0 comments on commit 7a804ff

Please sign in to comment.