[chore] Rename local variable

This commit is contained in:
Cohee 2024-10-09 01:40:49 +03:00
parent 8a95e0a290
commit 3422303882
1 changed files with 3 additions and 3 deletions

View File

@ -628,14 +628,14 @@ async function autheliaUserLogin(request) {
return false;
}
const remote_user = request.get('Remote-User');
if (!remote_user) {
const remoteUser = request.get('Remote-User');
if (!remoteUser) {
return false;
}
const userHandles = await getAllUserHandles();
for (const userHandle of userHandles) {
if (remote_user == userHandle) {
if (remoteUser == userHandle) {
const user = await storage.getItem(toKey(userHandle));
if (user) {
request.session.handle = userHandle;