summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialoglinkshareview.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-12-12 11:33:12 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-12-12 11:33:12 +0100
commit45772473a9136ce775d41e6e95449624a98182c4 (patch)
treeb1c16fb4ad4ebf291fc26a669cacc405a716d258 /core/js/sharedialoglinkshareview.js
parent115e7e29cf60c49ddfebece9c25f35f3c5e5dac4 (diff)
downloadnextcloud-server-45772473a9136ce775d41e6e95449624a98182c4.tar.gz
nextcloud-server-45772473a9136ce775d41e6e95449624a98182c4.zip
Set autocomplete on share password input
Fixes #6821 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js/sharedialoglinkshareview.js')
-rw-r--r--core/js/sharedialoglinkshareview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index dc3b6f062b8..5a78276a491 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -66,9 +66,9 @@
'<div id="linkPass" class="oneline linkPass {{#unless isPasswordSet}}hidden{{/unless}}">' +
' <label for="linkPassText-{{cid}}" class="hidden-visually">{{passwordLabel}}</label>' +
' {{#if showPasswordCheckBox}}' +
- ' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholder}}" />' +
+ ' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholder}}" autocomplete="new-password" />' +
' {{else}}' +
- ' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholderInitial}}" />' +
+ ' <input id="linkPassText-{{cid}}" class="linkPassText" type="password" placeholder="{{passwordPlaceholderInitial}}" autocomplete="new-password" />' +
' {{/if}}' +
' <span class="icon icon-loading-small hidden"></span>' +
'</div>' +
rlitschek frank@owncloud.org * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ OC_Util::checkLoggedIn(); // Load the files we need OC_Util::addStyle( "settings", "settings" ); OC_App::setActiveNavigationEntry( "help" ); if(isset($_GET['mode']) and $_GET['mode'] === 'admin') { $url=OC_Helper::linkToAbsolute( 'core', 'doc/admin/index.html' ); $style1=''; $style2=' pressed'; }else{ $url=OC_Helper::linkToAbsolute( 'core', 'doc/user/index.html' ); $style1=' pressed'; $style2=''; } $url1=OC_Helper::linkToRoute( "settings_help" ).'?mode=user'; $url2=OC_Helper::linkToRoute( "settings_help" ).'?mode=admin'; $tmpl = new OC_Template( "settings", "help", "user" ); $tmpl->assign( "admin", OC_User::isAdminUser(OC_User::getUser())); $tmpl->assign( "url", $url ); $tmpl->assign( "url1", $url1 ); $tmpl->assign( "url2", $url2 ); $tmpl->assign( "style1", $style1 ); $tmpl->assign( "style2", $style2 ); $tmpl->printPage();