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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user