mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-10 04:05:34 +00:00
reset page expiry options on logout
This commit is contained in:
@@ -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', '/');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user