fix(auth): use the right function to oauth validate

pull/2749/head
Chaim Lev Ari 2019-01-25 10:44:31 +02:00
parent 41ded64037
commit 50c604ee4c
1 changed files with 1 additions and 1 deletions

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