diff options
author | Tim <contact@bytim.eu> | 2025-04-18 12:25:59 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-04-18 12:25:59 +0200 |
commit | 4b2ad030fa381662f4b0c2464e97b0d2c5f6a716 (patch) | |
tree | dcc6af3136764322bd779110dcedd35e293d583c /VPNAuth.Server/Pages/Auth.cshtml | |
download | VPNAuth-4b2ad030fa381662f4b0c2464e97b0d2c5f6a716.tar.xz VPNAuth-4b2ad030fa381662f4b0c2464e97b0d2c5f6a716.zip |
Initial commit
Diffstat (limited to 'VPNAuth.Server/Pages/Auth.cshtml')
-rw-r--r-- | VPNAuth.Server/Pages/Auth.cshtml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/VPNAuth.Server/Pages/Auth.cshtml b/VPNAuth.Server/Pages/Auth.cshtml new file mode 100644 index 0000000..5ac8efe --- /dev/null +++ b/VPNAuth.Server/Pages/Auth.cshtml @@ -0,0 +1,31 @@ +@page "/auth" +@model VPNAuth.Server.Pages.Auth + +@{ + Layout = null; +} + +<!DOCTYPE html> + +<html> +<head> + <title>VPNAuth - Auth</title> +</head> +<body style="text-align: center;"> + <h1>Authorization</h1> + <h2>VPNAuth</h2> + @if (Model.ValidRequest) + { + <div> + <p>Do you want to log into <i>@Request.Query["client_id"]</i>?</p> + <button onclick="window.location = '/accept-auth/@Model.RequestEntry?.Entity.Id'">Yes</button> + <br/> + <p>You are logged in as <i>@Model.User?.Username</i>.</p> + </div> + } + else + { + <b>Invalid request.</b> + } +</body> +</html> |