diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-29 18:04:38 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-02 12:33:28 +0200 |
commit | 85108cfe35e1614b4ce95adb35cc288b891e2778 (patch) | |
tree | 1d990a03bb459f1abb4dfc6d7ab91d436b057f62 /apps/files_sharing/src/views/SharingDetailsTab.vue | |
parent | 31c63792c2196ba0e8adde6738d1342fb362b9ee (diff) | |
download | nextcloud-server-85108cfe35e1614b4ce95adb35cc288b891e2778.tar.gz nextcloud-server-85108cfe35e1614b4ce95adb35cc288b891e2778.zip |
fix(files_sharing): Disable autocomplete for share label and password
Prevent browsers - as good as possible - from filling in user credentials as share label and password.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing/src/views/SharingDetailsTab.vue')
-rw-r--r-- | apps/files_sharing/src/views/SharingDetailsTab.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index b15ec472804..5e7f7c1b452 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -101,14 +101,15 @@ role="region"> <section> <NcInputField v-if="isPublicShare" - :value.sync="share.label" - type="text" - :label="t('files_sharing', 'Share label')" /> + autocomplete="off" + :label="t('files_sharing', 'Share label')" + :value.sync="share.label" /> <template v-if="isPublicShare"> <NcCheckboxRadioSwitch :checked.sync="isPasswordProtected" :disabled="isPasswordEnforced"> {{ t('files_sharing', 'Set password') }} </NcCheckboxRadioSwitch> <NcPasswordField v-if="isPasswordProtected" + autocomplete="new-password" :value="hasUnsavedPassword ? share.newPassword : ''" :error="passwordError" :helper-text="errorPasswordLabel" |