feat: callback will jump to blank page when from param start with "http" (#2778)

This commit is contained in:
DacongDA
2024-03-06 01:07:52 +08:00
committed by GitHub
parent fbdd5a926d
commit 4123d47174
2 changed files with 10 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class AuthCallback extends React.Component {
Setting.goToLink(`${oAuthParams.redirectUri}${concatChar}${responseType}=${token}&state=${oAuthParams.state}&token_type=bearer`);
} else if (responseType === "link") {
const from = innerParams.get("from");
Setting.goToLinkSoft(this, from);
Setting.goToLinkSoftOrJumpSelf(this, from);
} else if (responseType === "saml") {
if (res.data2.method === "POST") {
this.setState({