diff options
Diffstat (limited to 'VPNAuth.Server/Api')
-rw-r--r-- | VPNAuth.Server/Api/OAuth2.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/VPNAuth.Server/Api/OAuth2.cs b/VPNAuth.Server/Api/OAuth2.cs index 63dc115..66799e7 100644 --- a/VPNAuth.Server/Api/OAuth2.cs +++ b/VPNAuth.Server/Api/OAuth2.cs @@ -95,6 +95,8 @@ public static class OAuth2 Token = PkceUtils.GenerateToken(), Username = authRequest.Username }); + + db.AuthRequests.Remove(authRequest); db.SaveChanges(); await context.Response.WriteAsJsonAsync(new Token |