mirror of https://github.com/portainer/portainer
fix(auth): use the right function to oauth validate
parent
41ded64037
commit
50c604ee4c
|
@ -23,7 +23,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
|
||||||
}
|
}
|
||||||
|
|
||||||
function OAuthLogin(code) {
|
function OAuthLogin(code) {
|
||||||
return OAuth.login({ code: code }).$promise
|
return OAuth.validate({ code: code }).$promise
|
||||||
.then(function onLoginSuccess(response) {
|
.then(function onLoginSuccess(response) {
|
||||||
return setUser(response.jwt);
|
return setUser(response.jwt);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue