feat: fix issue that forget password page fails to redirect back to signin page (#2792)

This commit is contained in:
DacongDA 2024-03-10 09:55:44 +08:00 committed by GitHub
parent 31b7000f6a
commit dbc6b0dc45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,7 +156,7 @@ class ForgetPage extends React.Component {
if (res.status === "ok") {
const linkInStorage = sessionStorage.getItem("signinUrl");
if (linkInStorage !== null && linkInStorage !== "") {
Setting.goToLinkSoft(linkInStorage);
Setting.goToLinkSoft(this, linkInStorage);
} else {
Setting.redirectToLoginPage(this.getApplicationObj(), this.props.history);
}