diff --git a/app/portainer/services/authentication.js b/app/portainer/services/authentication.js index 39b7ada24..3396e3155 100644 --- a/app/portainer/services/authentication.js +++ b/app/portainer/services/authentication.js @@ -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); });