From 88ad921eed652e8e4701eac60eccc854582ba32b Mon Sep 17 00:00:00 2001 From: Vetlix Date: Mon, 3 Jun 2024 16:14:39 +0200 Subject: [PATCH] fix: correct password autocompletes --- src/components/file/DashboardFile/EditFileDetailsModal.tsx | 1 + src/components/pages/settings/parts/SettingsUser.tsx | 1 + src/components/pages/upload/UploadOptionsButton.tsx | 3 ++- src/components/pages/urls/index.tsx | 1 + src/components/pages/users/EditUserModal.tsx | 1 + src/components/pages/users/index.tsx | 1 + src/pages/auth/register.tsx | 2 +- 7 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/file/DashboardFile/EditFileDetailsModal.tsx b/src/components/file/DashboardFile/EditFileDetailsModal.tsx index 87eceafad..1c238de04 100755 --- a/src/components/file/DashboardFile/EditFileDetailsModal.tsx +++ b/src/components/file/DashboardFile/EditFileDetailsModal.tsx @@ -142,6 +142,7 @@ export default function EditFileDetailsModal({ label='Password' description='Set a password for these files. Leave blank to disable password protection.' value={password ?? ''} + autoComplete='off' onChange={(event) => setPassword(event.currentTarget.value.trim() === '' ? null : event.currentTarget.value.trim()) } diff --git a/src/components/pages/settings/parts/SettingsUser.tsx b/src/components/pages/settings/parts/SettingsUser.tsx index 139613333..55e23908e 100755 --- a/src/components/pages/settings/parts/SettingsUser.tsx +++ b/src/components/pages/settings/parts/SettingsUser.tsx @@ -122,6 +122,7 @@ export default function SettingsUser() { } /> diff --git a/src/components/pages/upload/UploadOptionsButton.tsx b/src/components/pages/upload/UploadOptionsButton.tsx index 4d6b934b7..5fcca8721 100755 --- a/src/components/pages/upload/UploadOptionsButton.tsx +++ b/src/components/pages/upload/UploadOptionsButton.tsx @@ -225,6 +225,7 @@ export default function UploadOptionsButton({ numFiles }: { numFiles: number }) description='Set a password for these files. Leave blank to disable password protection. This value is not saved to your browser, and is cleared after uploading.' leftSection={} value={ephemeral.password ?? ''} + autoComplete='off' onChange={(event) => setEphemeral( 'password', @@ -233,7 +234,7 @@ export default function UploadOptionsButton({ numFiles }: { numFiles: number }) } /> - + Other Options diff --git a/src/components/pages/urls/index.tsx b/src/components/pages/urls/index.tsx index 9fdc9a31e..41f098a77 100755 --- a/src/components/pages/urls/index.tsx +++ b/src/components/pages/urls/index.tsx @@ -144,6 +144,7 @@ export default function DashboardURLs() { diff --git a/src/components/pages/users/EditUserModal.tsx b/src/components/pages/users/EditUserModal.tsx index 5e3ca665a..42ead0032 100755 --- a/src/components/pages/users/EditUserModal.tsx +++ b/src/components/pages/users/EditUserModal.tsx @@ -170,6 +170,7 @@ export default function EditUserModal({ )} - + Create an account to get started.