chore: 🤖 if origin is unset, redirect away from auth flow
This commit is contained in:
1 file changed
+5
@@ -6,6 +6,7 @@ export default class ScopesScopeAuthenticateRoute extends Route {
|
||||
// =services
|
||||
|
||||
@service session;
|
||||
@service origin;
|
||||
|
||||
// =methods
|
||||
|
||||
@@ -26,4 +27,8 @@ export default class ScopesScopeAuthenticateRoute extends Route {
|
||||
authMethods: this.store.query('auth-method', { scope_id }),
|
||||
});
|
||||
}
|
||||
|
||||
redirect() {
|
||||
if (!this.origin.rendererOrigin) this.replaceWith('index');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user