aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/views/SharingDetailsTab.vue
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-03-29 18:04:38 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-04-02 12:33:28 +0200
commit85108cfe35e1614b4ce95adb35cc288b891e2778 (patch)
tree1d990a03bb459f1abb4dfc6d7ab91d436b057f62 /apps/files_sharing/src/views/SharingDetailsTab.vue
parent31c63792c2196ba0e8adde6738d1342fb362b9ee (diff)
downloadnextcloud-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.vue7
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"