diff options
author | cel 🌸 <cel@blos.sm> | 2024-09-10 15:26:05 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-09-10 15:26:05 +0100 |
commit | 6fb41ab9b491a257b027bf8a3c8a0828dc681b9a (patch) | |
tree | 9c71e4f54e7adabe6f0efbc99c78addd23369127 /internal/user | |
parent | bd6f34bde4c2601696c2686f9d9353d599a9352b (diff) | |
download | donetick-6fb41ab9b491a257b027bf8a3c8a0828dc681b9a.tar.gz donetick-6fb41ab9b491a257b027bf8a3c8a0828dc681b9a.tar.bz2 donetick-6fb41ab9b491a257b027bf8a3c8a0828dc681b9a.zip |
Change username minimum length to 1
Diffstat (limited to '')
-rw-r--r-- | internal/user/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/user/handler.go b/internal/user/handler.go index d45f05c..c2e00cd 100644 --- a/internal/user/handler.go +++ b/internal/user/handler.go @@ -67,7 +67,7 @@ func (h *Handler) GetAllUsers() gin.HandlerFunc { func (h *Handler) signUp(c *gin.Context) { type SignUpReq struct { - Username string `json:"username" binding:"required,min=4,max=20"` + Username string `json:"username" binding:"required,min=1,max=20"` Password string `json:"password" binding:"required,min=8,max=45"` Email string `json:"email" binding:"required,email"` DisplayName string `json:"displayName"` |