refactor: 💡 simplify post-authenticate redirect

This commit is contained in:
Randall Morey committed 2020-10-27 11:21:48 -04:00
1 parent 5c2c910c22
commit e8a015676f
1 file changed
+1 -5
@@ -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 });