Browse Source

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>
pull/44575/head
Ferdinand Thiessen 2 months ago
parent
commit
85108cfe35
No account linked to committer's email address
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      apps/files_sharing/src/views/SharingDetailsTab.vue

+ 4
- 3
apps/files_sharing/src/views/SharingDetailsTab.vue View File

@@ -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"

Loading…
Cancel
Save