mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
feat: fix issue that forget password page fails to redirect back to signin page (#2792)
This commit is contained in:
parent
31b7000f6a
commit
dbc6b0dc45
@ -156,7 +156,7 @@ class ForgetPage extends React.Component {
|
|||||||
if (res.status === "ok") {
|
if (res.status === "ok") {
|
||||||
const linkInStorage = sessionStorage.getItem("signinUrl");
|
const linkInStorage = sessionStorage.getItem("signinUrl");
|
||||||
if (linkInStorage !== null && linkInStorage !== "") {
|
if (linkInStorage !== null && linkInStorage !== "") {
|
||||||
Setting.goToLinkSoft(linkInStorage);
|
Setting.goToLinkSoft(this, linkInStorage);
|
||||||
} else {
|
} else {
|
||||||
Setting.redirectToLoginPage(this.getApplicationObj(), this.props.history);
|
Setting.redirectToLoginPage(this.getApplicationObj(), this.props.history);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user