mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
Relocates guacamole backend/frontend source and tests into plugins/remote-desktop, following the ssh-terminal/docker pattern.
18 lines
383 B
TypeScript
18 lines
383 B
TypeScript
import type { HostAuthOverrides } from "@/types/auth-protocols";
|
|
|
|
export function needsRdpCredentialPrompt({
|
|
protocol,
|
|
rdpAuthType,
|
|
authOverrides,
|
|
}: {
|
|
protocol: "rdp" | "vnc" | "telnet";
|
|
rdpAuthType?: string;
|
|
authOverrides?: HostAuthOverrides;
|
|
}): boolean {
|
|
return (
|
|
protocol === "rdp" &&
|
|
rdpAuthType === "none" &&
|
|
!authOverrides?.rdp?.credentialId
|
|
);
|
|
}
|