mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
511d5d9b4c
closes #5951 - update to esa 1.0
18 lines
620 B
JavaScript
18 lines
620 B
JavaScript
import ENV from '../config/environment';
|
|
import ghostPaths from '../utils/ghost-paths';
|
|
import Configuration from 'ember-simple-auth/configuration';
|
|
import setupSession from 'ember-simple-auth/initializers/setup-session';
|
|
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service';
|
|
|
|
export default {
|
|
name: 'ember-simple-auth',
|
|
initialize: function (registry) {
|
|
const config = ENV['ember-simple-auth'] || {};
|
|
config.baseURL = ghostPaths().adminRoot;
|
|
Configuration.load(config);
|
|
|
|
setupSession(registry);
|
|
setupSessionService(registry);
|
|
}
|
|
};
|