summaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Pages/Auth.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'VPNAuth.Server/Pages/Auth.cshtml')
-rw-r--r--VPNAuth.Server/Pages/Auth.cshtml31
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>