mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-08 20:16:50 +02:00
Show error right
This commit is contained in:
@@ -419,7 +419,7 @@ export default function Page() {
|
|||||||
pamMode === "push" &&
|
pamMode === "push" &&
|
||||||
portVal
|
portVal
|
||||||
? Number(portVal)
|
? Number(portVal)
|
||||||
: null;
|
: undefined;
|
||||||
|
|
||||||
Object.assign(payload, {
|
Object.assign(payload, {
|
||||||
subdomain: sanitizedSubdomain
|
subdomain: sanitizedSubdomain
|
||||||
@@ -430,7 +430,7 @@ export default function Page() {
|
|||||||
mode: resourceType,
|
mode: resourceType,
|
||||||
pamMode,
|
pamMode,
|
||||||
authDaemonMode: effectiveMode,
|
authDaemonMode: effectiveMode,
|
||||||
authDaemonPort: effectivePort
|
authDaemonPort: effectivePort || undefined
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const tcpUdpData = tcpUdpForm.getValues();
|
const tcpUdpData = tcpUdpForm.getValues();
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ export default async function SshPage() {
|
|||||||
error = "Failed to sign SSH key for PAM push authentication.";
|
error = "Failed to sign SSH key for PAM push authentication.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (err) {
|
||||||
console.error("Error fetching browser target:", error);
|
console.error("Error fetching browser target:", err);
|
||||||
error = "No resource found for this domain";
|
error = "No resource found for this domain";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user