Skip to content

Commit

Permalink
feat(email): always use https
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Oct 6, 2023
1 parent 9896477 commit c0c1f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,6 @@ public async Task<IActionResult> Avatar(IFormFile file, CancellationToken token)
}

string GetEmailLink(string action, string token, string? email)
=> $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host}/account/{action}?" +
=> $"https://{HttpContext.Request.Host}/account/{action}?" +
$"token={token}&email={Codec.Base64.Encode(email)}";
}

0 comments on commit c0c1f54

Please sign in to comment.