Use a form so firefox doesn't try to save the space as a password

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-12-19 12:43:31 +01:00
parent 4f79d2ff0d
commit eed0eaeb86
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 3 additions and 3 deletions

View File

@ -147,12 +147,12 @@
</div></nav> </div></nav>
<div id="sudo-login-background" class="hidden"></div> <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> <?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')); ?>" /> placeholder="<?php p($l->t('Confirm your password')); ?>" />
<input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit"> <input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit">
</div> </form>
<div id="content-wrapper"> <div id="content-wrapper">
<div id="content" class="app-<?php p($_['appid']) ?>" role="main"> <div id="content" class="app-<?php p($_['appid']) ?>" role="main">