Rework the flow of setting email from the website

This commit is contained in:
Slendy 2023-01-02 02:23:14 -06:00
commit cf1769ca77
No known key found for this signature in database
GPG key ID: 7288D68361B91428
8 changed files with 47 additions and 94 deletions

View file

@ -12,7 +12,7 @@ public class LogoutPage : BaseLayout
public async Task<IActionResult> OnGet()
{
WebToken? token = this.Database.WebTokenFromRequest(this.Request);
if (token == null) return this.BadRequest();
if (token == null) return this.Redirect("~/");
this.Database.WebTokens.Remove(token);
await this.Database.SaveChangesAsync();