Run code cleanup, add sidebar persistence, fix OIDC credentials, force SSH password.

This commit is contained in:
LukeGus
2025-10-05 21:48:32 -05:00
parent aaec940b1b
commit 75e973f3a2
9 changed files with 31 additions and 18 deletions

View File

@@ -210,7 +210,18 @@ export function HostManagerEditor({
defaultPath: z.string().optional(),
})
.superRefine((data, ctx) => {
if (data.authType === "key") {
if (data.authType === "password") {
if (
!data.password ||
(typeof data.password === "string" && data.password.trim() === "")
) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: t("hosts.passwordRequired"),
path: ["password"],
});
}
} else if (data.authType === "key") {
if (
!data.key ||
(typeof data.key === "string" && data.key.trim() === "")