mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 11:43:59 -05:00
Update to extend login info cookies to 365 days to reduce reductant page refresh
This commit is contained in:
parent
65b91e0b66
commit
83d8142045
1 changed files with 2 additions and 2 deletions
|
@ -28,11 +28,11 @@ function resetCheckAuth() {
|
|||
|
||||
function setLoginState(bool, id) {
|
||||
Cookies.set('loginstate', bool, {
|
||||
expires: 14
|
||||
expires: 365
|
||||
});
|
||||
if (id) {
|
||||
Cookies.set('userid', id, {
|
||||
expires: 14
|
||||
expires: 365
|
||||
});
|
||||
} else {
|
||||
Cookies.remove('userid');
|
||||
|
|
Loading…
Reference in a new issue