From 50c604ee4c9e3d890e421594c0307dbaefdab069 Mon Sep 17 00:00:00 2001 From: Chaim Lev Ari Date: Fri, 25 Jan 2019 10:44:31 +0200 Subject: [PATCH] fix(auth): use the right function to oauth validate --- app/portainer/services/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });