mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-18 00:53:49 +08:00
fix: fix missing parameters when signup (#533)
This commit is contained in:

committed by
GitHub

parent
cfbce79e32
commit
ca0fa5fc40
@ -484,6 +484,7 @@ class LoginPage extends React.Component {
|
|||||||
<span style={{float: "right"}}>
|
<span style={{float: "right"}}>
|
||||||
{i18next.t("login:No account?")}
|
{i18next.t("login:No account?")}
|
||||||
<a onClick={() => {
|
<a onClick={() => {
|
||||||
|
sessionStorage.setItem("loginURL", window.location.href)
|
||||||
Setting.goToSignup(this, application);
|
Setting.goToSignup(this, application);
|
||||||
}}>
|
}}>
|
||||||
{i18next.t("login:sign up now")}
|
{i18next.t("login:sign up now")}
|
||||||
|
@ -65,7 +65,12 @@ class ResultPage extends React.Component {
|
|||||||
subTitle={i18next.t("signup:Please click the below button to sign in")}
|
subTitle={i18next.t("signup:Please click the below button to sign in")}
|
||||||
extra={[
|
extra={[
|
||||||
<Button type="primary" key="login" onClick={() => {
|
<Button type="primary" key="login" onClick={() => {
|
||||||
Setting.goToLogin(this, application);
|
let linkInStorage = sessionStorage.getItem("loginURL")
|
||||||
|
if (linkInStorage != "") {
|
||||||
|
Setting.goToLink(linkInStorage)
|
||||||
|
} else {
|
||||||
|
Setting.goToLogin(this, application)
|
||||||
|
}
|
||||||
}}>
|
}}>
|
||||||
{i18next.t("login:Sign In")}
|
{i18next.t("login:Sign In")}
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -557,7 +557,12 @@ class SignupPage extends React.Component {
|
|||||||
</Button>
|
</Button>
|
||||||
{i18next.t("signup:Have account?")}
|
{i18next.t("signup:Have account?")}
|
||||||
<a onClick={() => {
|
<a onClick={() => {
|
||||||
Setting.goToLogin(this, application);
|
let linkInStorage = sessionStorage.getItem("loginURL")
|
||||||
|
if(linkInStorage != ""){
|
||||||
|
Setting.goToLink(linkInStorage)
|
||||||
|
}else{
|
||||||
|
Setting.goToLogin(this, application)
|
||||||
|
}
|
||||||
}}>
|
}}>
|
||||||
{i18next.t("signup:sign in now")}
|
{i18next.t("signup:sign in now")}
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user