From 650f66e6472e7ed9feb64eda2bc329183de5982e Mon Sep 17 00:00:00 2001 From: anxi0uz Date: Fri, 20 Mar 2026 18:28:48 +0500 Subject: [PATCH] roles added for register v2 --- internal/handler/user.go | 1 + 1 file changed, 1 insertion(+) 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,