mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
parent
29652eb6a4
commit
11290de91c
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
||||||
import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';
|
import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';
|
||||||
|
import ghostPaths from 'ghost/utils/ghost-paths';
|
||||||
|
|
||||||
|
const paths = ghostPaths();
|
||||||
|
const keyName = `ghost${(paths.subdir.indexOf('/') === 0 ? `-${paths.subdir.substr(1)}` : ``) }:session`;
|
||||||
|
|
||||||
export default AdaptiveStore.extend({
|
export default AdaptiveStore.extend({
|
||||||
localStorageKey: 'ghost:session',
|
localStorageKey: keyName,
|
||||||
cookieName: 'ghost:session'
|
cookieName: keyName
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue