From e8a015676fc101289d32ad0e0136e0a7b338712c Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Tue, 27 Oct 2020 11:21:48 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20simplify=20post-auth?= =?UTF-8?q?enticate=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/app/routes/scopes/scope/authenticate/method.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/core/app/routes/scopes/scope/authenticate/method.js b/ui/core/app/routes/scopes/scope/authenticate/method.js index 891fbea04..7f9f87856 100644 --- a/ui/core/app/routes/scopes/scope/authenticate/method.js +++ b/ui/core/app/routes/scopes/scope/authenticate/method.js @@ -53,11 +53,7 @@ export default class ScopesScopeAuthenticateMethodRoute extends Route { requestCookies, { scope, authMethod } ); - if (scope.isGlobal) { - this.transitionTo('scopes.scope.orgs'); - } else { - this.transitionTo('scopes.scope.projects'); - } + this.transitionTo('index'); } catch (e) { const errorMessage = this.intl.t('errors.authentication-failed.title'); this.notify.error(errorMessage, { closeAfter: null });