blob: cb00d9f44ceb3c2c2c5454c4037fb3d1b797424c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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>
|