aboutsummaryrefslogtreecommitdiffstats
path: root/internal/user
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-06 02:36:14 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-06 02:36:14 -0400
commit45e18c8edd55e98712d5f175ecaaae86fde4d933 (patch)
treee7364d8e48a85c897de019f0786eff4c6dc2a990 /internal/user
parentf115d70c49048e3ec3ee768bd9cd85f9b06c1631 (diff)
downloaddonetick-45e18c8edd55e98712d5f175ecaaae86fde4d933.tar.gz
donetick-45e18c8edd55e98712d5f175ecaaae86fde4d933.tar.bz2
donetick-45e18c8edd55e98712d5f175ecaaae86fde4d933.zip
Add GetChoreDetail endpoint to retrieve detailed chore information
Diffstat (limited to 'internal/user')
-rw-r--r--internal/user/handler.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/user/handler.go b/internal/user/handler.go
index 0eee6f2..961851f 100644
--- a/internal/user/handler.go
+++ b/internal/user/handler.go
@@ -69,6 +69,7 @@ func (h *Handler) signUp(c *gin.Context) {
type SignUpReq struct {
Username string `json:"username" binding:"required,min=4,max=20"`
Password string `json:"password" binding:"required,min=8,max=45"`
+ Email string `json:"email" binding:"required,email"`
DisplayName string `json:"displayName"`
}
var signupReq SignUpReq
@@ -96,6 +97,7 @@ func (h *Handler) signUp(c *gin.Context) {
Username: signupReq.Username,
Password: password,
DisplayName: signupReq.DisplayName,
+ Email: signupReq.Email,
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
}); err != nil {