fix: enviar machineId e preencher autocomplete no acesso remoto
This commit is contained in:
parent
d1569083de
commit
f7aa17f229
1 changed files with 5 additions and 3 deletions
|
|
@ -3222,7 +3222,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) {
|
|||
try {
|
||||
if (editingRemoteAccess && !editingRemoteAccess.id) {
|
||||
const cleanupPayload: Record<string, unknown> = {
|
||||
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<string, unknown> = {
|
||||
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"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid gap-2">
|
||||
|
|
@ -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"
|
||||
/>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Esse valor ficará disponível para os administradores do painel. Limpe o campo para remover a senha salva.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue