1
0
Fork 0
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:
Chaim Lev Ari 2019-01-25 10:44:31 +02:00
parent 41ded64037
commit 50c604ee4c

View file

@ -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);
});