]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_sharing): Disable autocomplete for share label and password
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 29 Mar 2024 17:04:38 +0000 (18:04 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Tue, 2 Apr 2024 12:11:29 +0000 (14:11 +0200)
Prevent browsers - as good as possible - from filling in user credentials as share label and password.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files_sharing/src/views/SharingDetailsTab.vue

index 92222a05c5af7e5647d2059cc1786877c7ab9e4e..e852a0f8599517a04ecf9df37f01756915a8d203 100644 (file)
                                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"