fix(webui): make headless login self-explanatory (#5735)

* fix(webui): guide headless login

* fix(webui): correct SSH handoff and password fallback
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-13 05:01:13 +08:00
1 parent 7cede64f07
commit f8c1f2ede0
15 files changed
+265 -86

No files matched your search

+18 -3
View File
@@ -382,9 +382,20 @@ function AuthForm({
className="flex w-full max-w-sm flex-col gap-4"
>
<div className="space-y-2">
<h1 className="text-sm font-medium text-foreground">
<label htmlFor="webui-access-password">{t("app.auth.label")}</label>
<h1 className="text-lg font-semibold text-foreground">
{t("app.auth.title")}
</h1>
<p id="webui-auth-help" className="text-sm text-muted-foreground">
{t("app.auth.help")}
</p>
</div>
<div className="space-y-2">
<label
htmlFor="webui-access-password"
className="text-sm font-medium text-foreground"
>
{t("app.auth.label")}
</label>
<div className="relative">
<Input
ref={inputRef}
@@ -399,7 +410,11 @@ function AuthForm({
}}
disabled={submitting}
aria-invalid={validationError ? true : undefined}
aria-describedby={validationError ? "webui-auth-error" : undefined}
aria-describedby={
validationError
? "webui-auth-help webui-auth-error"
: "webui-auth-help"
}
className="pr-10"
autoFocus
/>