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.
| @@ -70,7 +70,7 @@ enableDiscreetLogin: false | ||
| 70 | 70 | # https://www.authelia.com/ |
| 71 | 71 | # This will use auto login to an account with the same username |
| 72 | 72 | # as that used for authlia. (Ensure the username in authlia |
| 73 | 73 | # is an exact match in lowercase with that in sillytavern) |
| 74 | 74 | autheliaAuth: false |
| 75 | 75 | # If `basicAuthMode` and this are enabled then |
| 76 | 76 | # the username and passwords for basic auth are the same as those |
| @@ -760,7 +760,7 @@ async function autheliaUserLogin(request) { | ||
| 760 | 760 | |
| 761 | 761 | const userHandles = await getAllUserHandles(); |
| 762 | 762 | for (const userHandle of userHandles) { |
| 763 | 763 | if (remoteUser.toLowerCase() === userHandle) { |
| 764 | 764 | const user = await storage.getItem(toKey(userHandle)); |
| 765 | 765 | if (user && user.enabled) { |
| 766 | 766 | request.session.handle = userHandle; |