                 avatar = path
             }
 
-            let randomPassword = form.password.isEmpty ? String.random(12) : form.password
+            let password = form.password.isEmpty ? String.random(12) : form.password
 
             let user = try U(
                 name: form.name,
                 title: form.title,
                 email: form.email,
-                password: randomPassword,
+                password: password,
                 role: form.role,
                 shouldResetPassword: form.shouldResetPassword,
                 avatar: avatar

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

    public func edit(req: Request) throws -> ResponseRepresentable {
        let user: U
        do {
            user = try req.parameters.next()
        } catch {
            return redirect("/admin/backend/users").flash(.error, "User not found")
        }
