mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
b88a54fb71
fixes: https://github.com/TryGhost/Ghost/issues/15291 - An attempt to improve re-authenticate modal toggle - show re-authenticate modal every time user save (ctrl/cmd + s) - An attempt to fix redirection when user re-login on different tab. Prevent redirection to sign-in page since the user already logged in on another tab. - Re-enable `editor` test on `authentication-test.js`
11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
import Route from '@ember/routing/route';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class AuthenticatedRoute extends Route {
|
|
@service session;
|
|
|
|
async beforeModel(transition) {
|
|
this.session.requireAuthentication(transition, 'signin');
|
|
}
|
|
}
|