mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 22:27:22 +00:00
17 lines
386 B
JavaScript
17 lines
386 B
JavaScript
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class AuthPortalLoginRoute extends Route {
|
|
@service session;
|
|
|
|
/**
|
|
* If user is authentication redirect to portal.
|
|
*
|
|
* @memberof AuthPortalLoginRoute
|
|
* @void
|
|
*/
|
|
beforeModel() {
|
|
this.session.prohibitAuthentication('portal');
|
|
}
|
|
}
|