Open jaybo opened 3 years ago
I was puzzling over why I couldn't get email verification to work, and came up with this solution:
Current code in AccountsControlelr.cs, line 70.
[HttpPost("verify-email")] public IActionResult VerifyEmail(VerifyEmailRequest model) { ... }
But clicking on an email link only does a GET request, correct? So I changed the above to:
[HttpGet("verify-email")] public IActionResult VerifyEmai.([FromQuery] VerifyEmailRequest model) { ... }
and it seems to work. I don't think this affects idempotency since then internal state change isn't visible to clients, yes?
I was puzzling over why I couldn't get email verification to work, and came up with this solution:
Current code in AccountsControlelr.cs, line 70.
But clicking on an email link only does a GET request, correct? So I changed the above to:
and it seems to work. I don't think this affects idempotency since then internal state change isn't visible to clients, yes?