mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 13:51:13 +00:00
Merge branch 'main' into communities-search
This commit is contained in:
commit
a07e94a957
2 changed files with 3 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
||||||
"dev": "yarn build:dev --watch",
|
"dev": "yarn build:dev --watch",
|
||||||
"lint": "yarn translations:generate && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
|
"lint": "yarn translations:generate && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
|
"postinstall": "husky install",
|
||||||
"themes:build": "sass src/assets/css/themes/:src/assets/css/themes",
|
"themes:build": "sass src/assets/css/themes/:src/assets/css/themes",
|
||||||
"themes:watch": "sass --watch src/assets/css/themes/:src/assets/css/themes",
|
"themes:watch": "sass --watch src/assets/css/themes/:src/assets/css/themes",
|
||||||
"translations:generate": "node generate_translations.js",
|
"translations:generate": "node generate_translations.js",
|
||||||
|
|
|
@ -154,9 +154,8 @@ export class Login extends Component<any, State> {
|
||||||
if (loginRes.msg === "missing_totp_token") {
|
if (loginRes.msg === "missing_totp_token") {
|
||||||
i.setState({ showTotp: true });
|
i.setState({ showTotp: true });
|
||||||
toast(I18NextService.i18n.t("enter_two_factor_code"), "info");
|
toast(I18NextService.i18n.t("enter_two_factor_code"), "info");
|
||||||
}
|
} else {
|
||||||
if (loginRes.msg === "incorrect_login") {
|
toast(I18NextService.i18n.t(loginRes.msg), "danger");
|
||||||
toast(I18NextService.i18n.t("incorrect_login"), "danger");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i.setState({ loginRes: { state: "failed", msg: loginRes.msg } });
|
i.setState({ loginRes: { state: "failed", msg: loginRes.msg } });
|
||||||
|
|
Loading…
Reference in a new issue