mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Fix code sign-in link hiding.
This commit is contained in:
parent
2fcc8f5bfe
commit
dbebd1846f
@ -448,13 +448,17 @@ class LoginPage extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<span style={{float: "left"}}>
|
<span style={{float: "left"}}>
|
||||||
<a onClick={() => {
|
{
|
||||||
this.setState({
|
!application.enableCodeSignin ? null : (
|
||||||
isCodeSignin: !this.state.isCodeSignin,
|
<a onClick={() => {
|
||||||
});
|
this.setState({
|
||||||
}}>
|
isCodeSignin: !this.state.isCodeSignin,
|
||||||
{this.state.isCodeSignin ? i18next.t("login:Sign in with password") : i18next.t("login:Sign in with code")}
|
});
|
||||||
</a>
|
}}>
|
||||||
|
{this.state.isCodeSignin ? i18next.t("login:Sign in with password") : i18next.t("login:Sign in with code")}
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
<span style={{float: "right"}}>
|
<span style={{float: "right"}}>
|
||||||
{i18next.t("login:No account?")}
|
{i18next.t("login:No account?")}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user