mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 05:22:55 +08:00
fix: concatChar assignment logic (#595)
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
This commit is contained in:
@@ -106,7 +106,7 @@ class AuthCallback extends React.Component {
|
|||||||
method: method,
|
method: method,
|
||||||
};
|
};
|
||||||
const oAuthParams = Util.getOAuthGetParameters(innerParams);
|
const oAuthParams = Util.getOAuthGetParameters(innerParams);
|
||||||
const concatChar = oAuthParams?.redirectUri?.indexOf('?') === -1 ? '?' : '&';
|
const concatChar = oAuthParams?.redirectUri?.includes('?') ? '&' : '?';
|
||||||
AuthBackend.login(body, oAuthParams)
|
AuthBackend.login(body, oAuthParams)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.status === 'ok') {
|
if (res.status === 'ok') {
|
||||||
|
@@ -138,7 +138,7 @@ class LoginPage extends React.Component {
|
|||||||
Setting.goToLink(link);
|
Setting.goToLink(link);
|
||||||
} else if (responseType === "code") {
|
} else if (responseType === "code") {
|
||||||
const code = res.data;
|
const code = res.data;
|
||||||
const concatChar = oAuthParams?.redirectUri?.indexOf('?') === -1 ? '?' : '&';
|
const concatChar = oAuthParams?.redirectUri?.includes('?') ? '&' : '?';
|
||||||
|
|
||||||
if (Setting.hasPromptPage(application)) {
|
if (Setting.hasPromptPage(application)) {
|
||||||
AuthBackend.getAccount("")
|
AuthBackend.getAccount("")
|
||||||
|
Reference in New Issue
Block a user