diff --git a/internal/handler/user.go b/internal/handler/user.go index 1f8c3b7..8055244 100644 --- a/internal/handler/user.go +++ b/internal/handler/user.go @@ -163,6 +163,7 @@ func (s *Server) AuthRegister(w http.ResponseWriter, r *http.Request) { Slug: s.GenerateUserSlug(req.FullName, uuid), CreatedAt: now, UpdatedAt: now, + Role: string(req.Role), Email: string(req.Email), PasswordHash: string(passwordHash), FullName: req.FullName,