fix: add autoComplete=off on password fields to suppress WebKit autofill error
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -623,7 +623,7 @@ export default function SettingsPage({ initialSettings, initialCacheStats, initi
|
|||||||
<FormField className="flex-1">
|
<FormField className="flex-1">
|
||||||
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.password")}</label>
|
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.password")}</label>
|
||||||
<FormInput
|
<FormInput
|
||||||
type="password"
|
type="password" autoComplete="off"
|
||||||
value={komgaPassword}
|
value={komgaPassword}
|
||||||
onChange={(e) => setKomgaPassword(e.target.value)}
|
onChange={(e) => setKomgaPassword(e.target.value)}
|
||||||
/>
|
/>
|
||||||
@@ -971,7 +971,7 @@ function MetadataProvidersCard({ handleUpdateSetting }: { handleUpdateSetting: (
|
|||||||
{t("settings.googleBooksKey")}
|
{t("settings.googleBooksKey")}
|
||||||
</label>
|
</label>
|
||||||
<FormInput
|
<FormInput
|
||||||
type="password"
|
type="password" autoComplete="off"
|
||||||
placeholder={t("settings.googleBooksPlaceholder")}
|
placeholder={t("settings.googleBooksPlaceholder")}
|
||||||
value={apiKeys.google_books || ""}
|
value={apiKeys.google_books || ""}
|
||||||
onChange={(e) => setApiKeys({ ...apiKeys, google_books: e.target.value })}
|
onChange={(e) => setApiKeys({ ...apiKeys, google_books: e.target.value })}
|
||||||
@@ -986,7 +986,7 @@ function MetadataProvidersCard({ handleUpdateSetting }: { handleUpdateSetting: (
|
|||||||
{t("settings.comicvineKey")}
|
{t("settings.comicvineKey")}
|
||||||
</label>
|
</label>
|
||||||
<FormInput
|
<FormInput
|
||||||
type="password"
|
type="password" autoComplete="off"
|
||||||
placeholder={t("settings.comicvinePlaceholder")}
|
placeholder={t("settings.comicvinePlaceholder")}
|
||||||
value={apiKeys.comicvine || ""}
|
value={apiKeys.comicvine || ""}
|
||||||
onChange={(e) => setApiKeys({ ...apiKeys, comicvine: e.target.value })}
|
onChange={(e) => setApiKeys({ ...apiKeys, comicvine: e.target.value })}
|
||||||
@@ -1328,7 +1328,7 @@ function ProwlarrCard({ handleUpdateSetting }: { handleUpdateSetting: (key: stri
|
|||||||
<FormField className="flex-1">
|
<FormField className="flex-1">
|
||||||
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.prowlarrApiKey")}</label>
|
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.prowlarrApiKey")}</label>
|
||||||
<FormInput
|
<FormInput
|
||||||
type="password"
|
type="password" autoComplete="off"
|
||||||
placeholder={t("settings.prowlarrApiKeyPlaceholder")}
|
placeholder={t("settings.prowlarrApiKeyPlaceholder")}
|
||||||
value={prowlarrApiKey}
|
value={prowlarrApiKey}
|
||||||
onChange={(e) => setProwlarrApiKey(e.target.value)}
|
onChange={(e) => setProwlarrApiKey(e.target.value)}
|
||||||
@@ -1466,7 +1466,7 @@ function QBittorrentCard({ handleUpdateSetting }: { handleUpdateSetting: (key: s
|
|||||||
<FormField className="flex-1">
|
<FormField className="flex-1">
|
||||||
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.qbittorrentPassword")}</label>
|
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.qbittorrentPassword")}</label>
|
||||||
<FormInput
|
<FormInput
|
||||||
type="password"
|
type="password" autoComplete="off"
|
||||||
value={qbPassword}
|
value={qbPassword}
|
||||||
onChange={(e) => setQbPassword(e.target.value)}
|
onChange={(e) => setQbPassword(e.target.value)}
|
||||||
onBlur={() => saveQbittorrent()}
|
onBlur={() => saveQbittorrent()}
|
||||||
@@ -1632,7 +1632,7 @@ function TelegramCard({ handleUpdateSetting }: { handleUpdateSetting: (key: stri
|
|||||||
<FormField className="flex-1">
|
<FormField className="flex-1">
|
||||||
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.botToken")}</label>
|
<label className="text-sm font-medium text-muted-foreground mb-1 block">{t("settings.botToken")}</label>
|
||||||
<FormInput
|
<FormInput
|
||||||
type="password"
|
type="password" autoComplete="off"
|
||||||
placeholder={t("settings.botTokenPlaceholder")}
|
placeholder={t("settings.botTokenPlaceholder")}
|
||||||
value={botToken}
|
value={botToken}
|
||||||
onChange={(e) => setBotToken(e.target.value)}
|
onChange={(e) => setBotToken(e.target.value)}
|
||||||
|
|||||||
Reference in New Issue
Block a user