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

View File

@@ -379,6 +379,11 @@ export function readJSONFile (path) {
}
};
/**
*
* @param {*} username
* @returns {Object | null} user object containing username and realm or null if user does not exist
*/
export function getUserObjFromUsername (username) {
if (username) {
const userRealm = username.split("@").at(-1);