mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-10 01:56:49 +08:00
feat: fix 'Enable code sign' is not displayed in the login page (#925)
This commit is contained in:
@ -505,7 +505,7 @@ class LoginPage extends React.Component {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
!application.enableSignUp ? null : this.renderFooter(application)
|
this.renderFooter(application)
|
||||||
}
|
}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item>
|
<Form.Item>
|
||||||
@ -535,16 +535,12 @@ class LoginPage extends React.Component {
|
|||||||
return this.renderProviderLogo(providerItem.provider, application, 40, 10, "big");
|
return this.renderProviderLogo(providerItem.provider, application, 40, 10, "big");
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
{
|
<div>
|
||||||
!application.enableSignUp ? null : (
|
<br />
|
||||||
<div>
|
{
|
||||||
<br />
|
this.renderFooter(application)
|
||||||
{
|
}
|
||||||
this.renderFooter(application)
|
</div>
|
||||||
}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -579,13 +575,19 @@ class LoginPage extends React.Component {
|
|||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
<span style={{float: "right"}}>
|
<span style={{float: "right"}}>
|
||||||
{i18next.t("login:No account?")}
|
{
|
||||||
<a onClick={() => {
|
!application.enableSignUp ? null : (
|
||||||
sessionStorage.setItem("signinUrl", window.location.href);
|
<>
|
||||||
Setting.goToSignup(this, application);
|
{i18next.t("login:No account?")}
|
||||||
}}>
|
<a onClick={() => {
|
||||||
{i18next.t("login:sign up now")}
|
sessionStorage.setItem("signinUrl", window.location.href);
|
||||||
</a>
|
Setting.goToSignup(this, application);
|
||||||
|
}}>
|
||||||
|
{i18next.t("login:sign up now")}
|
||||||
|
</a>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user