mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 11:21:26 +00:00
Display more information why has the login failed (#2109)
* Add registration_application_pending and email_not_verified as a toast message * Fix linting errors * Fix more linting errors * Skip key checks on login error --------- Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
parent
0ec0af71bb
commit
38ec8c0b06
1 changed files with 2 additions and 3 deletions
|
@ -154,9 +154,8 @@ export class Login extends Component<any, State> {
|
|||
if (loginRes.msg === "missing_totp_token") {
|
||||
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");
|
||||
} else {
|
||||
toast(I18NextService.i18n.t(loginRes.msg), "danger");
|
||||
}
|
||||
|
||||
i.setState({ loginRes: { state: "failed", msg: loginRes.msg } });
|
||||
|
|
Loading…
Reference in a new issue