aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-04-25 20:23:12 +0200
committerTim <contact@bytim.eu>2025-04-25 20:23:12 +0200
commit433d740d56cf2cfaa528249775ac8815c192e829 (patch)
treee8d6da5bdaa85e9382e4dcab7fddac2ca3bd6032
parentb67e236302332eb9cd6c8e32e5dca5bc33ffbe5d (diff)
downloadVPNAuth-433d740d56cf2cfaa528249775ac8815c192e829.tar.xz
VPNAuth-433d740d56cf2cfaa528249775ac8815c192e829.zip
Show ip on dashboard when no user is detected.
-rw-r--r--VPNAuth.Server/Pages/Dashboard.cshtml3
1 files changed, 1 insertions, 2 deletions
diff --git a/VPNAuth.Server/Pages/Dashboard.cshtml b/VPNAuth.Server/Pages/Dashboard.cshtml
index 6648797..f0fea84 100644
--- a/VPNAuth.Server/Pages/Dashboard.cshtml
+++ b/VPNAuth.Server/Pages/Dashboard.cshtml
@@ -5,7 +5,6 @@
@{
Layout = null;
- string remoteIp = Request.HttpContext.GetRemoteIpAddress();
ConfigUser? configUser = Request.HttpContext.GetUser();
UserInformation? dbUser = null;
@@ -27,7 +26,7 @@
<body>
@if (configUser == null)
{
- <p>No user detected</p>
+ <p>No user detected with IP <code>@Request.HttpContext.GetRemoteIpAddress()</code>.</p>
}
else
{