From 36c464a2bd4a418588d99ec07d651618c0a2894d Mon Sep 17 00:00:00 2001 From: yesBad Date: Thu, 12 Dec 2024 23:43:15 +0000 Subject: [PATCH] mmm lowercase --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 64de754..afb7843 100644 --- a/index.js +++ b/index.js @@ -55,8 +55,8 @@ app.get('/', requiresAuth(), (req, res) => { try { if (!req?.oidc?.accessToken) return; if (req.headers["x-real-ip"] == req.headers["x-forwarded-for"]) { - console.log(`[${req.headers["x-real-ip"]}] ${req?.oidc?.idTokenClaims?.preferred_username} visited /`); - let arr = []; arr.push([req?.oidc?.idTokenClaims?.preferred_username, req.headers["x-real-ip"]]); + console.log(`[${req.headers["x-real-ip"]}] ${req?.oidc?.idTokenClaims?.preferred_username.toLowerCase()} visited /`); + let arr = []; arr.push([req?.oidc?.idTokenClaims?.preferred_username.toLowerCase(), req.headers["x-real-ip"]]); updateTraefikConfig(arr); res.redirect(redirectee); }