mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
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>
This commit is contained in:
parent
2911cd8cdb
commit
7a804ff333
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue