feat(oauth): fix the double refresh issue

pull/2749/head
Anthony Lapenna 2019-02-21 11:09:57 +13:00
parent 6711e6c969
commit b9ac3d4286
1 changed files with 0 additions and 1 deletions

View File

@ -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';