summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-02-28 13:47:06 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-28 13:47:06 +0100
commitad7ddbc0684a9f3ef6daf5e6bac9a502931333ea (patch)
treea2660f39b3c7840cb696f54c16ae59312f74b593 /core
parent77927442a65040389333a0d12b15b8d9eba4d0ae (diff)
downloadnextcloud-server-ad7ddbc0684a9f3ef6daf5e6bac9a502931333ea.tar.gz
nextcloud-server-ad7ddbc0684a9f3ef6daf5e6bac9a502931333ea.zip
Set autocomplete=new-password for mail share password
This avoids the browser to do autocompletion on the mail share password field. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogshareelistview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index e76a25bd020..82cf8ee8c36 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -104,7 +104,7 @@
'<label for="password-{{cid}}-{{shareId}}">{{passwordLabel}}</label>' +
'<div class="passwordContainer-{{cid}}-{{shareId}} {{#unless isPasswordSet}}hidden{{/unless}}">' +
' <label for="passwordField-{{cid}}-{{shareId}}" class="hidden-visually" value="{{password}}">{{passwordLabel}}</label>' +
- ' <input id="passwordField-{{cid}}-{{shareId}}" class="passwordField" type="password" placeholder="{{passwordPlaceholder}}" value="{{passwordValue}}" />' +
+ ' <input id="passwordField-{{cid}}-{{shareId}}" class="passwordField" type="password" placeholder="{{passwordPlaceholder}}" value="{{passwordValue}}" autocomplete="new-password" />' +
' <span class="icon-loading-small hidden"></span>' +
'</div>' +
'</span>' +