mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 05:15:25 +02:00
fix(auth): fix typos
Co-Authored-By: chiptus <chiptus@users.noreply.github.com>
This commit is contained in:
parent
fc8938e871
commit
c650fe56c2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue