mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
d51e25888d
no issue - many "The automatic session initialization is deprecated" were shown in test output due to an old method of initializing the session service - switched to explicit session setup in the application route's `beforeModel` hook - https://github.com/simplabs/ember-simple-auth/issues/2314
16 lines
478 B
JavaScript
16 lines
478 B
JavaScript
import Configuration from 'ember-simple-auth/configuration';
|
|
import ENV from '../config/environment';
|
|
import ghostPaths from '../utils/ghost-paths';
|
|
import setupSession from 'ember-simple-auth/initializers/setup-session';
|
|
|
|
export default {
|
|
name: 'ember-simple-auth',
|
|
initialize(registry) {
|
|
let config = ENV['ember-simple-auth'] || {};
|
|
config.rootURL = ghostPaths().adminRoot;
|
|
Configuration.load(config);
|
|
|
|
setupSession(registry);
|
|
}
|
|
};
|