summaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Pages/Dashboard.cshtml
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-04-18 12:25:59 +0200
committerTim <contact@bytim.eu>2025-04-18 12:25:59 +0200
commit4b2ad030fa381662f4b0c2464e97b0d2c5f6a716 (patch)
treedcc6af3136764322bd779110dcedd35e293d583c /VPNAuth.Server/Pages/Dashboard.cshtml
downloadVPNAuth-4b2ad030fa381662f4b0c2464e97b0d2c5f6a716.tar.xz
VPNAuth-4b2ad030fa381662f4b0c2464e97b0d2c5f6a716.zip
Initial commit
Diffstat (limited to 'VPNAuth.Server/Pages/Dashboard.cshtml')
-rw-r--r--VPNAuth.Server/Pages/Dashboard.cshtml41
1 files changed, 41 insertions, 0 deletions
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();
+}
+
+<!DOCTYPE html>
+
+<html>
+<head>
+ <title>VPNAuth - Dashboard</title>
+</head>
+<body style="text-align: center;">
+ @if (user == null)
+ {
+ <p>No user detected</p>
+ }
+ else
+ {
+ <div>
+ <h1>Dashboard</h1>
+ <h2>VPNAuth</h2>
+ <p>Hey, @user.Username!</p>
+ <i>User settings coming soon...</i>
+ <h3>Your IPs</h3>
+ <ul style="list-style-position: inside;">
+ @foreach (var ip in user.Ips!)
+ {
+ <li>@ip</li>
+ }
+ </ul>
+ </div>
+ }
+</body>
+</html>