add SameSite value for access cookies,

add proper minimum expire time for username/auth access cookie,
fix bug in setUser
This commit is contained in:
2024-10-30 18:59:10 +00:00
parent 4984877ab7
commit 7626dcf387
3 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ class USER_BACKEND_MANAGER extends USER_BACKEND {
for (const backend of this.#config.realm[user.realm]) {
const atomicChange = await global.backends[backend].setUser(user, attributes, params);
if (atomicChange.valid === false) { // if any fails, preemptively exit
return atomicChange.stauts;
return atomicChange.status;
}
atomicChanges.push(atomicChange); // queue callback into array
}