fix: lowercase remote-user header in authelia auto-login procedure Ensure the remote-user header is lowercased to fix case-sensitivity issues in the authelia auto-login process, improving compatibility.

cfa9ef4726833d0e7c5dff6c18fd4575385c0d5f

Nicode <RD_Nicode@outlook.com>

2 files changed, +2 -2Ignore whitespace
default/config.yaml+1 -1
@@ -70,7 +70,7 @@ enableDiscreetLogin: false
7070# https://www.authelia.com/
7171# This will use auto login to an account with the same username
7272# as that used for authlia. (Ensure the username in authlia
7373# is an exact match in lowercase with that in sillytavern)
7474autheliaAuth: false
7575# If `basicAuthMode` and this are enabled then
7676# the username and passwords for basic auth are the same as those
src/users.js+1 -1
@@ -760,7 +760,7 @@ async function autheliaUserLogin(request) {
760760
761761 const userHandles = await getAllUserHandles();
762762 for (const userHandle of userHandles) {
763763 if (remoteUser.toLowerCase() === userHandle) {
764764 const user = await storage.getItem(toKey(userHandle));
765765 if (user && user.enabled) {
766766 request.session.handle = userHandle;