Class AccountChangeEmailController
N-4 (Session E, N4-7): anonymous change-of-e-mail \u2014 confirm side.
POST /api/v1/identity/account/change-email/confirm verifies + atomically
consumes a confirmation token (issued by POST /me/change-email/request) and
swaps the user's e-mail to the new address while flipping
UserProps.EmailVerified=true. The swap is only applied when the user's
current address still matches the snapshot captured at issue time \u2014 a race
against another mutation path aborts the commit with a generic
invalid_token response.
All failures return invalid_token regardless of cause; granular reason is
recorded only in audit logs. 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/change-email")]
public class AccountChangeEmailController : IdentityControllerBase
Inheritance
Inherited Members
Methods
Confirm(ChangeEmailConfirmRequest)
Verify and consume a change-of-e-mail token. Single-use.
[HttpPost("confirm")]
public Task<object?> Confirm(ChangeEmailConfirmRequest request)