mirror of https://github.com/portainer/portainer
feat(oauth): fix the double refresh issue
parent
6711e6c969
commit
b9ac3d4286
|
@ -133,7 +133,6 @@ function($q, $scope, $state, $stateParams, $sanitize, Authentication, UserServic
|
||||||
return Authentication.OAuthLogin(code)
|
return Authentication.OAuthLogin(code)
|
||||||
.then(function success() {
|
.then(function success() {
|
||||||
URLHelper.cleanParameters();
|
URLHelper.cleanParameters();
|
||||||
$state.go('portainer.home');
|
|
||||||
})
|
})
|
||||||
.catch(function error() {
|
.catch(function error() {
|
||||||
$scope.state.AuthenticationError = 'Unable to login via OAuth';
|
$scope.state.AuthenticationError = 'Unable to login via OAuth';
|
||||||
|
|
Loading…
Reference in New Issue