suppress autocompletion of password input field

* fix #118
* increased the password input field to fit the "Password (recommended)" text
pull/125/head
Wikinaut 8 years ago
parent 5d822af5b1
commit c6e6b1fe78

@ -159,7 +159,16 @@ if ($PASSWORD):
?>
<li>
<div id="password" class="navbar-form hidden">
<input type="password" id="passwordinput" placeholder="<?php echo I18n::_('Password (recommended)'); ?>" class="form-control" size="19" />
<!-- The following form element glues pseudo-login data together, so that password managers can try to look up stored value pairs.
The username field is made hidden, because I found that otherwise password managers will fill in data into the password field.
See https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields
-->
<form>
<input type="text" name="username" class="hidden" />
<input type="password" id="passwordinput" placeholder="<?php echo I18n::_('Password (recommended)'); ?>" class="form-control" size="20" />
</form>
</div>
</li>
<?php

Loading…
Cancel
Save