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 {
|
try {
|
||||||
if (editingRemoteAccess && !editingRemoteAccess.id) {
|
if (editingRemoteAccess && !editingRemoteAccess.id) {
|
||||||
const cleanupPayload: Record<string, unknown> = {
|
const cleanupPayload: Record<string, unknown> = {
|
||||||
deviceId: device.id,
|
machineId: device.id,
|
||||||
action: "delete",
|
action: "delete",
|
||||||
}
|
}
|
||||||
if (editingRemoteAccess.provider) cleanupPayload.provider = editingRemoteAccess.provider
|
if (editingRemoteAccess.provider) cleanupPayload.provider = editingRemoteAccess.provider
|
||||||
|
|
@ -3239,7 +3239,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
deviceId: device.id,
|
machineId: device.id,
|
||||||
provider: providerName,
|
provider: providerName,
|
||||||
identifier,
|
identifier,
|
||||||
username,
|
username,
|
||||||
|
|
@ -3291,7 +3291,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) {
|
||||||
setRemoteAccessSaving(true)
|
setRemoteAccessSaving(true)
|
||||||
try {
|
try {
|
||||||
const requestPayload: Record<string, unknown> = {
|
const requestPayload: Record<string, unknown> = {
|
||||||
deviceId: device.id,
|
machineId: device.id,
|
||||||
action: "delete",
|
action: "delete",
|
||||||
}
|
}
|
||||||
if (entry.id) {
|
if (entry.id) {
|
||||||
|
|
@ -4273,6 +4273,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) {
|
||||||
value={remoteAccessUsernameInput}
|
value={remoteAccessUsernameInput}
|
||||||
onChange={(event) => setRemoteAccessUsernameInput(event.target.value)}
|
onChange={(event) => setRemoteAccessUsernameInput(event.target.value)}
|
||||||
placeholder="Ex: suporte@cliente.com"
|
placeholder="Ex: suporte@cliente.com"
|
||||||
|
autoComplete="username"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
|
|
@ -4282,6 +4283,7 @@ export function DeviceDetails({ device }: DeviceDetailsProps) {
|
||||||
value={remoteAccessPasswordInput}
|
value={remoteAccessPasswordInput}
|
||||||
onChange={(event) => setRemoteAccessPasswordInput(event.target.value)}
|
onChange={(event) => setRemoteAccessPasswordInput(event.target.value)}
|
||||||
placeholder="Senha permanente do RustDesk ou PIN"
|
placeholder="Senha permanente do RustDesk ou PIN"
|
||||||
|
autoComplete="current-password"
|
||||||
/>
|
/>
|
||||||
<p className="text-xs text-muted-foreground">
|
<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.
|
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