Fix "forget password" back bug.

This commit is contained in:
Yang Luo 2021-06-04 01:21:53 +08:00
parent 1cb5ae54c5
commit 7434d0f3d3
2 changed files with 6 additions and 4 deletions

View File

@ -270,7 +270,7 @@ export function goToForget(ths, application) {
if (authConfig.appName === application.name) {
goToLinkSoft(ths, "/forget");
} else {
if (application.signupUrl === "") {
if (application.forgetUrl === "") {
goToLinkSoft(ths, `/forget/${application.name}`);
} else {
goToLink(application.forgetUrl);

View File

@ -194,11 +194,13 @@ class LoginPage extends React.Component {
{i18next.t("login:Auto login")}
</Checkbox>
</Form.Item>
<Link style={{float: "right"}} onClick={() => {
<div style={{float: "right"}} onClick={() => {
Setting.goToForget(this, application);
}}>
{i18next.t("login:Forgot password?")}
</Link>
<a>
{i18next.t("login:Forgot password?")}
</a>
</div>
</Form.Item>
<Form.Item>
<Button