Rename to method.

This commit is contained in:
Yang Luo
2021-02-14 15:45:48 +08:00
parent faeb93494c
commit 20b70c323d
5 changed files with 10 additions and 10 deletions

View File

@ -26,7 +26,7 @@ class AuthCallback extends React.Component {
classes: props,
providerType: props.match.params.providerType,
providerName: props.match.params.providerName,
addition: props.match.params.addition,
method: props.match.params.method,
state: params.get("state"),
code: params.get("code"),
isAuthenticated: false,
@ -49,8 +49,8 @@ class AuthCallback extends React.Component {
authLogin() {
let redirectUrl;
redirectUrl = `${getClientUrl()}/callback/${this.state.providerType}/${this.state.providerName}/${this.state.addition}`;
AuthBackend.authLogin(this.state.providerName, this.state.code, this.state.state, redirectUrl, this.state.addition)
redirectUrl = `${getClientUrl()}/callback/${this.state.providerType}/${this.state.providerName}/${this.state.method}`;
AuthBackend.authLogin(this.state.providerName, this.state.code, this.state.state, redirectUrl, this.state.method)
.then((res) => {
if (res.status === "ok") {
window.location.href = '/';