From 7a804ff33323615b727c1cc8172e168e354f11db Mon Sep 17 00:00:00 2001 From: rosenjcb <rosenjcb@gmail.com> Date: Wed, 12 Jul 2023 07:01:47 -0700 Subject: [PATCH] Add Toast Messages for Bad Logins (#1874) * Added toast prompts * Using generic message instead. --------- Co-authored-by: Jacob Rosenzweig <rosenjcb@Jacobs-MacBook-Pro.local> Co-authored-by: SleeplessOne1917 <abias1122@gmail.com> --- src/shared/components/home/login.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/components/home/login.tsx b/src/shared/components/home/login.tsx index e2986b5..62e5721 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -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; -- 2.44.1