From 4b2ad030fa381662f4b0c2464e97b0d2c5f6a716 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 18 Apr 2025 12:25:59 +0200 Subject: Initial commit --- VPNAuth.Server/Pages/Dashboard.cshtml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 VPNAuth.Server/Pages/Dashboard.cshtml (limited to 'VPNAuth.Server/Pages/Dashboard.cshtml') diff --git a/VPNAuth.Server/Pages/Dashboard.cshtml b/VPNAuth.Server/Pages/Dashboard.cshtml new file mode 100644 index 0000000..cb00d9f --- /dev/null +++ b/VPNAuth.Server/Pages/Dashboard.cshtml @@ -0,0 +1,41 @@ +@page "/" +@using Microsoft.EntityFrameworkCore.ChangeTracking +@using VPNAuth.Server +@using VPNAuth.Server.Database + +@{ + Layout = null; + + string remoteIp = Request.HttpContext.GetRemoteIpAddress(); + ConfigUser? user = Request.HttpContext.GetUser(); +} + + + + + + VPNAuth - Dashboard + + + @if (user == null) + { +

No user detected

+ } + else + { +
+

Dashboard

+

VPNAuth

+

Hey, @user.Username!

+ User settings coming soon... +

Your IPs

+ +
+ } + + -- cgit v1.2.3