From 930a63bb779972eac73435264dfeb719493854d6 Mon Sep 17 00:00:00 2001 From: rosenjcb 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 Co-authored-by: SleeplessOne1917 --- 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 e2986b57..62e57214 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -169,6 +169,9 @@ export class Login extends Component { 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;