roles added for register v2

This commit is contained in:
2026-03-20 18:28:48 +05:00
parent 82e5e77ef5
commit 650f66e647

View File

@@ -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,