0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Add authentication scope.

closes #3982
- Set custom key to use in localStorage based on subdir
This commit is contained in:
Fabian Becker 2014-09-09 23:44:38 +00:00
parent 9f6884e876
commit aa43e98e2e

View file

@ -28,6 +28,9 @@ var AuthenticationInitializer = {
return this._super(url, data);
}
});
SimpleAuth.Stores.LocalStorage.reopen({
key: 'ghost' + (Ghost.subdir.indexOf('/') === 0 ? '-' + Ghost.subdir.substr(1) : '') + ':session'
});
}
};