mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
17 lines
376 B
JavaScript
17 lines
376 B
JavaScript
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class AuthLoginRoute extends Route {
|
|
@service session;
|
|
|
|
/**
|
|
* If user is authentication redirect to console.
|
|
*
|
|
* @memberof AuthLoginRoute
|
|
* @void
|
|
*/
|
|
beforeModel() {
|
|
this.session.prohibitAuthentication('console');
|
|
}
|
|
}
|