Remove unnessicary auth token

This commit is contained in:
Owen
2026-06-06 13:47:23 -07:00
parent 4b770d1385
commit 8658198a93
4 changed files with 0 additions and 11 deletions

View File

@@ -178,7 +178,6 @@ function RdpServerForm({
mode: "rdp",
ip: destination,
port: Number(destinationPort),
authToken: null,
hcEnabled: false
})
)

View File

@@ -54,7 +54,6 @@ import type { ResourceContextType } from "@app/contexts/resourceContext";
type ExistingTarget = {
targetId: number;
siteId: number;
authToken?: string | null;
};
type TargetRow = {
@@ -65,7 +64,6 @@ type TargetRow = {
mode: string | null;
ip: string;
port: number;
authToken?: string | null;
};
type ResourceTargetsResponse = {
@@ -206,7 +204,6 @@ function SshServerForm({
: targets.map((target) => ({
targetId: target.targetId,
siteId: target.siteId,
authToken: target.authToken
}))
);
@@ -216,7 +213,6 @@ function SshServerForm({
? {
targetId: firstTarget.targetId,
siteId: firstTarget.siteId,
authToken: firstTarget.authToken
}
: null
);
@@ -264,7 +260,6 @@ function SshServerForm({
ip: "localhost",
port: 22,
siteId: nativeSite.siteId,
authToken: nativeExistingTarget.authToken,
hcEnabled: false
}
);
@@ -286,7 +281,6 @@ function SshServerForm({
setNativeExistingTarget({
targetId: res.data.data.targetId,
siteId: nativeSite.siteId,
authToken: res.data.data.authToken
});
}
}
@@ -323,7 +317,6 @@ function SshServerForm({
ip: values.destination,
port: Number(values.destinationPort),
siteId: t.siteId,
authToken: t.authToken,
hcEnabled: false
})
)
@@ -347,7 +340,6 @@ function SshServerForm({
const newTargets: ExistingTarget[] = created.map((res, i) => ({
targetId: res.data.data.targetId,
siteId: toCreate[i].siteId,
authToken: res.data.data.authToken
}));
setExistingTargets([...toUpdate, ...newTargets]);
}

View File

@@ -178,7 +178,6 @@ function VncServerForm({
mode: "vnc",
ip: destination,
port: Number(destinationPort),
authToken: null,
hcEnabled: false
})
)

View File

@@ -638,7 +638,6 @@ export default function Page() {
mode: resourceType,
ip: bgValues.destination,
port: Number(bgValues.destinationPort),
authToken: null,
hcEnabled: false
}
);