roles added for register v2
This commit is contained in:
@@ -163,6 +163,7 @@ func (s *Server) AuthRegister(w http.ResponseWriter, r *http.Request) {
|
|||||||
Slug: s.GenerateUserSlug(req.FullName, uuid),
|
Slug: s.GenerateUserSlug(req.FullName, uuid),
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
UpdatedAt: now,
|
UpdatedAt: now,
|
||||||
|
Role: string(req.Role),
|
||||||
Email: string(req.Email),
|
Email: string(req.Email),
|
||||||
PasswordHash: string(passwordHash),
|
PasswordHash: string(passwordHash),
|
||||||
FullName: req.FullName,
|
FullName: req.FullName,
|
||||||
|
|||||||
Reference in New Issue
Block a user