mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-08 20:16:50 +02:00
Remove unnessicary auth token
This commit is contained in:
@@ -178,7 +178,6 @@ function RdpServerForm({
|
|||||||
mode: "rdp",
|
mode: "rdp",
|
||||||
ip: destination,
|
ip: destination,
|
||||||
port: Number(destinationPort),
|
port: Number(destinationPort),
|
||||||
authToken: null,
|
|
||||||
hcEnabled: false
|
hcEnabled: false
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ import type { ResourceContextType } from "@app/contexts/resourceContext";
|
|||||||
type ExistingTarget = {
|
type ExistingTarget = {
|
||||||
targetId: number;
|
targetId: number;
|
||||||
siteId: number;
|
siteId: number;
|
||||||
authToken?: string | null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type TargetRow = {
|
type TargetRow = {
|
||||||
@@ -65,7 +64,6 @@ type TargetRow = {
|
|||||||
mode: string | null;
|
mode: string | null;
|
||||||
ip: string;
|
ip: string;
|
||||||
port: number;
|
port: number;
|
||||||
authToken?: string | null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type ResourceTargetsResponse = {
|
type ResourceTargetsResponse = {
|
||||||
@@ -206,7 +204,6 @@ function SshServerForm({
|
|||||||
: targets.map((target) => ({
|
: targets.map((target) => ({
|
||||||
targetId: target.targetId,
|
targetId: target.targetId,
|
||||||
siteId: target.siteId,
|
siteId: target.siteId,
|
||||||
authToken: target.authToken
|
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -216,7 +213,6 @@ function SshServerForm({
|
|||||||
? {
|
? {
|
||||||
targetId: firstTarget.targetId,
|
targetId: firstTarget.targetId,
|
||||||
siteId: firstTarget.siteId,
|
siteId: firstTarget.siteId,
|
||||||
authToken: firstTarget.authToken
|
|
||||||
}
|
}
|
||||||
: null
|
: null
|
||||||
);
|
);
|
||||||
@@ -264,7 +260,6 @@ function SshServerForm({
|
|||||||
ip: "localhost",
|
ip: "localhost",
|
||||||
port: 22,
|
port: 22,
|
||||||
siteId: nativeSite.siteId,
|
siteId: nativeSite.siteId,
|
||||||
authToken: nativeExistingTarget.authToken,
|
|
||||||
hcEnabled: false
|
hcEnabled: false
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -286,7 +281,6 @@ function SshServerForm({
|
|||||||
setNativeExistingTarget({
|
setNativeExistingTarget({
|
||||||
targetId: res.data.data.targetId,
|
targetId: res.data.data.targetId,
|
||||||
siteId: nativeSite.siteId,
|
siteId: nativeSite.siteId,
|
||||||
authToken: res.data.data.authToken
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -323,7 +317,6 @@ function SshServerForm({
|
|||||||
ip: values.destination,
|
ip: values.destination,
|
||||||
port: Number(values.destinationPort),
|
port: Number(values.destinationPort),
|
||||||
siteId: t.siteId,
|
siteId: t.siteId,
|
||||||
authToken: t.authToken,
|
|
||||||
hcEnabled: false
|
hcEnabled: false
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@@ -347,7 +340,6 @@ function SshServerForm({
|
|||||||
const newTargets: ExistingTarget[] = created.map((res, i) => ({
|
const newTargets: ExistingTarget[] = created.map((res, i) => ({
|
||||||
targetId: res.data.data.targetId,
|
targetId: res.data.data.targetId,
|
||||||
siteId: toCreate[i].siteId,
|
siteId: toCreate[i].siteId,
|
||||||
authToken: res.data.data.authToken
|
|
||||||
}));
|
}));
|
||||||
setExistingTargets([...toUpdate, ...newTargets]);
|
setExistingTargets([...toUpdate, ...newTargets]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,7 +178,6 @@ function VncServerForm({
|
|||||||
mode: "vnc",
|
mode: "vnc",
|
||||||
ip: destination,
|
ip: destination,
|
||||||
port: Number(destinationPort),
|
port: Number(destinationPort),
|
||||||
authToken: null,
|
|
||||||
hcEnabled: false
|
hcEnabled: false
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -638,7 +638,6 @@ export default function Page() {
|
|||||||
mode: resourceType,
|
mode: resourceType,
|
||||||
ip: bgValues.destination,
|
ip: bgValues.destination,
|
||||||
port: Number(bgValues.destinationPort),
|
port: Number(bgValues.destinationPort),
|
||||||
authToken: null,
|
|
||||||
hcEnabled: false
|
hcEnabled: false
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user