Replace the header "Byt lösenord" link with an Inställningar menu for changing email or password. Email changes are two-step: request with password, confirmation link to the new address, then password again on confirm so a wrong inbox cannot take over the account. - Backend: EmailChangeService, V10 email_change_tokens, confirm API - Frontend: ChangeEmailPage, ConfirmEmailChangePage, header dropdown - E2E: account-settings round-trips, Mailpit verification, wrong-password guard - Flyway: V9 restore for dev DBs, CI migration checks, V10 for email tokens Co-authored-by: Cursor <cursoragent@cursor.com>
5 lines
172 B
Java
5 lines
172 B
Java
package se.bilhalsning.dto;
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
public record ConfirmEmailChangeRequest(@NotBlank String token, @NotBlank String password) {}
|