feat: WIP mail verification flow

This commit is contained in:
Florian Sylvain
2024-05-14 19:37:44 +02:00
parent 8015639db5
commit ec14eee439
22 changed files with 265 additions and 143 deletions
+5 -3
View File
@@ -11,9 +11,10 @@ type CreateUserUseCase struct {
}
type CreateUserCommand struct {
Username string
Password string
Email string
Username string
Password string
Email string
VerificationCode string
}
func NewCreateUserUseCase(db *gorm.DB) *CreateUserUseCase {
@@ -27,5 +28,6 @@ func (g *CreateUserUseCase) CreateUser(createUser CreateUserCommand) (user.User,
createUser.Username,
createUser.Password,
createUser.Email,
createUser.VerificationCode,
))
}