summaryrefslogtreecommitdiff
path: root/public/js/lib/common/login.js
diff options
context:
space:
mode:
authorSheogorath2020-06-08 16:27:56 +0200
committerSheogorath2020-06-08 16:27:56 +0200
commit7e02a92c457c8879f1d69c4699ad06604d4e1b65 (patch)
tree8093fd5dec0822274077f93d5ec229b00baf993e /public/js/lib/common/login.js
parent49de5f5bd6239354d98b424804951974588ab25e (diff)
parent2215da9431bf4a3a1f921a7542887525048d0c1c (diff)
Merge branch 'pr-upstream-389'
Diffstat (limited to 'public/js/lib/common/login.js')
-rw-r--r--public/js/lib/common/login.js6
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')