diff options
Diffstat (limited to 'VPNAuth.Server/Pages')
-rw-r--r-- | VPNAuth.Server/Pages/Auth.cshtml.cs | 3 | ||||
-rw-r--r-- | VPNAuth.Server/Pages/Dashboard.cshtml | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/VPNAuth.Server/Pages/Auth.cshtml.cs b/VPNAuth.Server/Pages/Auth.cshtml.cs index bdcbc59..1f75492 100644 --- a/VPNAuth.Server/Pages/Auth.cshtml.cs +++ b/VPNAuth.Server/Pages/Auth.cshtml.cs @@ -44,7 +44,8 @@ public class Auth : PageModel Scopes = Request.Query["scope"].ToString().Split(" ").ToList(), CodeChallenge = Request.Query["code_challenge"]!, CodeChallengeMethod = Request.Query["code_challenge_method"]!, - Accepted = false + Accepted = false, + Username = User!.Username! }); db.SaveChanges(); } diff --git a/VPNAuth.Server/Pages/Dashboard.cshtml b/VPNAuth.Server/Pages/Dashboard.cshtml index 38f9c7e..78f6846 100644 --- a/VPNAuth.Server/Pages/Dashboard.cshtml +++ b/VPNAuth.Server/Pages/Dashboard.cshtml @@ -35,7 +35,7 @@ <h2>VPNAuth</h2> <p>Hey, @configUser.Username!</p> <h3>User settings</h3> - <form hx-post="/user-info" hx-swap="none" hx-trigger="change"> + <form hx-post="/user-info-settings" hx-swap="none" hx-trigger="change"> <table style="margin-left: auto; margin-right: auto;"> <tbody> <tr> |