diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-29 18:04:38 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-02 14:10:19 +0200 |
commit | 697dafaabc1e913e974c766d9e21258f202bcde3 (patch) | |
tree | 247fd1699996c1c4066444031f5519acaf1b184a /apps/files_sharing | |
parent | 0e290ca9a2982d775b23a104062c3f5141d66e2a (diff) | |
download | nextcloud-server-697dafaabc1e913e974c766d9e21258f202bcde3.tar.gz nextcloud-server-697dafaabc1e913e974c766d9e21258f202bcde3.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')
-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 5f0519e6c64..5b13f8d3fba 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -97,14 +97,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" |