From f7aa17f2297074b2e344ab6f17d6f34e784541f5 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Fri, 7 Nov 2025 16:08:40 -0300 Subject: [PATCH] fix: enviar machineId e preencher autocomplete no acesso remoto --- src/components/admin/devices/admin-devices-overview.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/admin/devices/admin-devices-overview.tsx b/src/components/admin/devices/admin-devices-overview.tsx index f848b18..fafc54f 100644 --- a/src/components/admin/devices/admin-devices-overview.tsx +++ b/src/components/admin/devices/admin-devices-overview.tsx @@ -3222,7 +3222,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) { try { if (editingRemoteAccess && !editingRemoteAccess.id) { const cleanupPayload: Record = { - deviceId: device.id, + machineId: device.id, action: "delete", } if (editingRemoteAccess.provider) cleanupPayload.provider = editingRemoteAccess.provider @@ -3239,7 +3239,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ - deviceId: device.id, + machineId: device.id, provider: providerName, identifier, username, @@ -3291,7 +3291,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) { setRemoteAccessSaving(true) try { const requestPayload: Record = { - deviceId: device.id, + machineId: device.id, action: "delete", } if (entry.id) { @@ -4273,6 +4273,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) { value={remoteAccessUsernameInput} onChange={(event) => setRemoteAccessUsernameInput(event.target.value)} placeholder="Ex: suporte@cliente.com" + autoComplete="username" />
@@ -4282,6 +4283,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) { value={remoteAccessPasswordInput} onChange={(event) => setRemoteAccessPasswordInput(event.target.value)} placeholder="Senha permanente do RustDesk ou PIN" + autoComplete="current-password" />

Esse valor ficará disponível para os administradores do painel. Limpe o campo para remover a senha salva.