From c650fe56c29c0a1aeb7066533fd58aee66b1026c Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 16 Jan 2019 16:53:24 +0200 Subject: [PATCH] fix(auth): fix typos Co-Authored-By: chiptus --- app/portainer/services/authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/portainer/services/authentication.js b/app/portainer/services/authentication.js index 7b334e10e..39b7ada24 100644 --- a/app/portainer/services/authentication.js +++ b/app/portainer/services/authentication.js @@ -8,7 +8,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage var user = {}; service.init = init; - service.oAuthLogin = oAuthLogin; + service.OAuthLogin = OAuthLogin; service.login = login; service.logout = logout; service.isAuthenticated = isAuthenticated; @@ -22,7 +22,7 @@ function AuthenticationFactory(Auth, OAuth, jwtHelper, LocalStorage, StateManage } } - function oAuthLogin(code) { + function OAuthLogin(code) { return OAuth.login({ code: code }).$promise .then(function onLoginSuccess(response) { return setUser(response.jwt);