mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 09:13:50 +08:00
fix: fix the web compiled warnings (#778)
* fix: fix the web compiled warnings Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com> * fix: disable changeMomentLanguage Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com> * Update SyncerEditPage.js * Update UserEditPage.js * Update ResourceListPage.js * Update ProviderEditPage.js * Update ProductBuyPage.js Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
@ -319,7 +319,7 @@ class LoginPage extends React.Component {
|
||||
)
|
||||
} else if (provider.category === "SAML") {
|
||||
return (
|
||||
<a key={provider.displayName} onClick={this.getSamlUrl.bind(this, provider)}>
|
||||
<a href="/#" key={provider.displayName} onClick={this.getSamlUrl.bind(this, provider)}>
|
||||
<img width={width} height={width} src={Setting.getProviderLogoURL(provider)} alt={provider.displayName} style={{margin: margin}} />
|
||||
</a>
|
||||
)
|
||||
@ -475,7 +475,7 @@ class LoginPage extends React.Component {
|
||||
{i18next.t("login:Auto sign in")}
|
||||
</Checkbox>
|
||||
</Form.Item>
|
||||
<a style={{float: "right"}} onClick={() => {
|
||||
<a href="/#" style={{float: "right"}} onClick={() => {
|
||||
Setting.goToForget(this, application);
|
||||
}}>
|
||||
{i18next.t("login:Forgot password?")}
|
||||
@ -554,7 +554,7 @@ class LoginPage extends React.Component {
|
||||
<span style={{float: "left"}}>
|
||||
{
|
||||
!application.enableCodeSignin ? null : (
|
||||
<a onClick={() => {
|
||||
<a href="/#" onClick={() => {
|
||||
this.setState({
|
||||
isCodeSignin: !this.state.isCodeSignin,
|
||||
});
|
||||
@ -566,7 +566,7 @@ class LoginPage extends React.Component {
|
||||
</span>
|
||||
<span style={{float: "right"}}>
|
||||
{i18next.t("login:No account?")}
|
||||
<a onClick={() => {
|
||||
<a href="/#" onClick={() => {
|
||||
sessionStorage.setItem("loginURL", window.location.href)
|
||||
Setting.goToSignup(this, application);
|
||||
}}>
|
||||
|
Reference in New Issue
Block a user