 
         let user: U
         do {
-            user = try req.parameters.next(U.self)
+            user = try req.parameters.next()
         } catch {
             return redirect("/admin/backend/users").flash(.error, "User not found")
         }

                avatar = path
            }

            let randomPassword = form.password.isEmpty ? String.random(12) : form.password

            let user = try U(
                name: form.name,
                title: form.title,
                email: form.email,
                password: randomPassword,
                role: form.role,
                shouldResetPassword: form.shouldResetPassword,
                avatar: avatar

                    "url": .string(panelConfig.baseUrl)
                ]

                if !password.isEmpty {
                    context["password"] = .string(password)
                }

                mailer?.sendEmail(
