Spaces:
Runtime error
Runtime error
Commit ·
e9b994a
1
Parent(s): 3949017
Deploy files from GitHub repository
Browse files142 unmodified lines143144145146147148149142 unmodified linesResponseJSON(ctx, req, dto.UserResponse{}, err)return}// Update role if specified as admin/super-adminif req.Role != "" && req.Role != "user" {account.Role = req.Role142 unmodified lines143144145146147148149150151152153142 unmodified linesResponseJSON(ctx, req, dto.UserResponse{}, err)return}err = c.accountService.SetEmailVerified(ctx.Request.Context(), account.Id, true)if err != nil {ResponseJSON(ctx, req, dto.UserResponse{}, err)return}// Update role if specified as admin/super-adminif req.Role != "" && req.Role != "user" {account.Role = req.Role
controllers/user_controller.go+5-1