diff options
author | Sheogorath | 2020-06-08 16:27:56 +0200 |
---|---|---|
committer | Sheogorath | 2020-06-08 16:27:56 +0200 |
commit | 7e02a92c457c8879f1d69c4699ad06604d4e1b65 (patch) | |
tree | 8093fd5dec0822274077f93d5ec229b00baf993e /public/js/lib/common/login.js | |
parent | 49de5f5bd6239354d98b424804951974588ab25e (diff) | |
parent | 2215da9431bf4a3a1f921a7542887525048d0c1c (diff) |
Merge branch 'pr-upstream-389'
Diffstat (limited to 'public/js/lib/common/login.js')
-rw-r--r-- | public/js/lib/common/login.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/lib/common/login.js b/public/js/lib/common/login.js index 28e5b470..931c115f 100644 --- a/public/js/lib/common/login.js +++ b/public/js/lib/common/login.js @@ -19,11 +19,13 @@ export function resetCheckAuth () { export function setLoginState (bool, id) { Cookies.set('loginstate', bool, { - expires: 365 + expires: 365, + sameSite: 'strict' }) if (id) { Cookies.set('userid', id, { - expires: 365 + expires: 365, + sameSite: 'strict' }) } else { Cookies.remove('userid') |