User: email verification completion (#85259)

* TempUser: Include InvitedById in TempUserDTO

* Extract email verfication completion flow to service
This commit is contained in:
Karl Persson
2024-03-28 16:05:33 +01:00
committed by GitHub
parent 4a3140a0aa
commit 73e426b081
11 changed files with 275 additions and 108 deletions
+7 -2
View File
@@ -82,7 +82,8 @@ type UpdateUserCommand struct {
Login string `json:"login"`
Theme string `json:"theme"`
UserID int64 `json:"-"`
UserID int64 `json:"-"`
EmailVerified *bool `json:"-"`
}
type ChangeUserPasswordCommand struct {
@@ -220,12 +221,16 @@ type GetUserByIDQuery struct {
ID int64
}
type VerifyEmailCommand struct {
type StartVerifyEmailCommand struct {
User User
Email string
Action UpdateEmailActionType
}
type CompleteEmailVerifyCommand struct {
Code string
}
type ErrCaseInsensitiveLoginConflict struct {
Users []User
}