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:
parent
9f6884e876
commit
aa43e98e2e
1 changed files with 3 additions and 0 deletions
|
@ -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'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue