mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
fix(auth): use the right function to oauth validate
This commit is contained in:
parent
41ded64037
commit
50c604ee4c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage
|
|||
}
|
||||
|
||||
function OAuthLogin(code) {
|
||||
return OAuth.login({ code: code }).$promise
|
||||
return OAuth.validate({ code: code }).$promise
|
||||
.then(function onLoginSuccess(response) {
|
||||
return setUser(response.jwt);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue