mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 01:38:39 +00:00
Rework the flow of setting email from the website
This commit is contained in:
parent
3f70563e1d
commit
cf1769ca77
8 changed files with 47 additions and 94 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue