mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 18:33:50 +08:00
Merge two login functions.
This commit is contained in:
@ -46,7 +46,7 @@ class AuthCallback extends React.Component {
|
||||
redirectUri: redirectUri,
|
||||
method: this.state.method,
|
||||
};
|
||||
AuthBackend.authLogin(body)
|
||||
AuthBackend.login(body)
|
||||
.then((res) => {
|
||||
if (res.status === "ok") {
|
||||
window.location.href = '/';
|
||||
|
Reference in New Issue
Block a user