Class AccountEmailVerifyController
N-4 (Session C, N4-6): anonymous e-mail-verification — confirm side.
POST /api/v1/identity/account/verify-email/confirm verifies + atomically
consumes a verification token (issued by POST /me/verify-email/send) and
flips UserProps.EmailVerified=true when the bound e-mail still matches the
user's current address (double-change race protection — a stale token never
vouches for a freshly changed e-mail). Failures return generic
invalid_token regardless of cause; granular reason is recorded only in
audit logs to deny attackers a guessing signal. The route lives under
/api/v1/identity/account/ so it can be whitelisted alongside
/api/v1/identity/password/ without exposing other me/* endpoints
anonymously.
[Route("account/verify-email")]
public class AccountEmailVerifyController : IdentityControllerBase
Inheritance
Inherited Members
Methods
Confirm(EmailVerifyConfirmRequest)
Verify and consume an e-mail verification token. Single-use.
[HttpPost("confirm")]
public Task<object?> Confirm(EmailVerifyConfirmRequest request)