Skip to content

Modern Docker Management, Designed for Everyone

fix: default password fields to new-password autocomplete (#4485)

Kyle Mendell161ac88b978d
diff --git a/frontend/src/routes/(app)/settings/notifications/components/providers/built-in-provider-form.svelte b/frontend/src/routes/(app)/settings/notifications/components/providers/built-in-provider-form.svelte
index 6de6897b7..3ca603a56 100644
--- a/frontend/src/routes/(app)/settings/notifications/components/providers/built-in-provider-form.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/components/providers/built-in-provider-form.svelte
@@ -448,8 +448,7 @@
label: m.notifications_email_password_label(),
placeholder: m.notifications_email_password_placeholder(),
helpText: m.notifications_email_password_help(),
- inputType: 'password',
- autocomplete: 'new-password'
+ inputType: 'password'
}
]
},
diff --git a/frontend/src/routes/(app)/settings/notifications/components/providers/dynamic-provider-form-builder.svelte b/frontend/src/routes/(app)/settings/notifications/components/providers/dynamic-provider-form-builder.svelte
index fdb4bb669..e45e86858 100644
--- a/frontend/src/routes/(app)/settings/notifications/components/providers/dynamic-provider-form-builder.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/components/providers/dynamic-provider-form-builder.svelte
@@ -92,7 +92,7 @@
{disabled}
placeholder={field.placeholder ?? ''}
type={field.inputType ?? 'text'}
- autocomplete={field.autocomplete ?? 'off'}
+ autocomplete={field.autocomplete ?? (field.inputType === 'password' ? 'new-password' : 'off')}
required={field.required ?? false}
aria-invalid={!!getFieldError(field)}
/>