userpage: change email (+ confirmation)

edit/add button added for email address. Confirmation works too.
This commit is contained in:
Harvey Tindall
2023-06-18 19:38:09 +01:00
parent 03f1a3dbc0
commit 609039baeb
40 changed files with 309 additions and 66 deletions
+11
View File
@@ -391,3 +391,14 @@ type MyDetailsContactMethodsDTO struct {
Value string `json:"value"`
Enabled bool `json:"enabled"`
}
type ModifyMyEmailDTO struct {
Email string `json:"email"`
}
type ConfirmationTarget int
const (
UserEmailChange ConfirmationTarget = iota
NoOp
)