mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
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>
This commit is contained in:
parent
0e290ca9a2
commit
697dafaabc
1 changed files with 4 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue