summaryrefslogtreecommitdiffstats
path: root/apps
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 14:11:29 +0200
commit68402768db5d0663ad9310743a74d18e4e6ce706 (patch)
treec2003356cba105e71cfeb40022b854c02c20421e /apps
parentc0245f58ca639a4f0bf31fb96d50791a9f0c3b92 (diff)
downloadnextcloud-server-68402768db5d0663ad9310743a74d18e4e6ce706.tar.gz
nextcloud-server-68402768db5d0663ad9310743a74d18e4e6ce706.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')
-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 92222a05c5a..e852a0f8599 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"