reset page expiry options on logout

This commit is contained in:
Danny Coates 2018-09-24 15:25:08 -07:00
parent e2259ae737
commit 294cd0dfa8
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ export default function(state, emitter) {
emitter.on('logout', () => { emitter.on('logout', () => {
state.user.logout(); state.user.logout();
state.timeLimit = DEFAULTS.EXPIRE_SECONDS;
state.downloadCount = 1;
emitter.emit('pushState', '/'); emitter.emit('pushState', '/');
}); });