Merge pull request #2804 from nextcloud/backport-2752-firefox-password-completion

[stable11] Use a form so firefox doesn't try to save the space as a password
This commit is contained in:
Roeland Jago Douma 2016-12-22 14:42:15 +01:00 committed by GitHub
commit 64ea055f59
1 changed files with 3 additions and 3 deletions

View File

@ -147,12 +147,12 @@
</div></nav>
<div id="sudo-login-background" class="hidden"></div>
<div id="sudo-login-form" class="hidden">
<form id="sudo-login-form" class="hidden">
<?php p($l->t('This action requires you to confirm your password:')); ?><br>
<input type="password" class="question" autocomplete="off" name="question" value=" <?php /* Hack against firefox ignoring autocomplete="off" */ ?>"
<input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>"
placeholder="<?php p($l->t('Confirm your password')); ?>" />
<input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit">
</div>
</form>
<div id="content-wrapper">
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">