[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; return false;
} }
const remote_user = request.get('Remote-User'); const remoteUser = request.get('Remote-User');
if (!remote_user) { if (!remoteUser) {
return false; return false;
} }
const userHandles = await getAllUserHandles(); const userHandles = await getAllUserHandles();
for (const userHandle of userHandles) { for (const userHandle of userHandles) {
if (remote_user == userHandle) { if (remoteUser == userHandle) {
const user = await storage.getItem(toKey(userHandle)); const user = await storage.getItem(toKey(userHandle));
if (user) { if (user) {
request.session.handle = userHandle; request.session.handle = userHandle;