diff options
author | Tim <contact@bytim.eu> | 2025-04-27 14:13:21 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-04-27 14:13:21 +0200 |
commit | 40499249f1ddd34dd202d65848118ee3b90db2eb (patch) | |
tree | 488b060052c2c06a346e1903a8c54fe75dfa3af6 /VPNAuth.Server | |
parent | a513e88be4c4dbaf6892401fd90ca2f4c94fe7af (diff) | |
download | VPNAuth-40499249f1ddd34dd202d65848118ee3b90db2eb.tar.xz VPNAuth-40499249f1ddd34dd202d65848118ee3b90db2eb.zip |
Fix oauth access token endpoint
Diffstat (limited to 'VPNAuth.Server')
-rw-r--r-- | VPNAuth.Server/Api/OAuth2.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/VPNAuth.Server/Api/OAuth2.cs b/VPNAuth.Server/Api/OAuth2.cs index b73b17b..f476bd4 100644 --- a/VPNAuth.Server/Api/OAuth2.cs +++ b/VPNAuth.Server/Api/OAuth2.cs @@ -65,7 +65,7 @@ public static class OAuth2 using var db = new Database.Database(); var authRequest = db.AuthRequests - .Where(request => request.Code == context.Request.Form["code"]) + .Where(request => request.Code == context.Request.Form["code"].ToString()) .ToList() .FirstOrDefault(); if (authRequest == null) |