Allow password-field autocomplete to be configured in settings.

This allows users to use strong passwords stored in browser password
managers, without resorting to workarounds like disabling autocomplete
everywhere.

Change-Id: I5f5e8cd332a5462bbbdc5c26bbfff2f3665016ea
This commit is contained in:
Paul McMillan 2013-02-06 14:49:40 -05:00
parent 1d99475ef9
commit 1cd260e518
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ HORIZON_CONFIG = {
'password_validator': {'regex': '.*',
'help_text': _("Password is not accepted")},
'password_autocomplete': 'on',
# Enable or disable simplified floating IP address management.
'simple_ip_management': True
}

View File

@ -5,7 +5,7 @@
{% block modal_class %}login {% if hide %}modal hide{% endif %}{% endblock %}
{% block form_action %}{% url login %}{% endblock %}
{% block autocomplete %}off{% endblock %}
{% block autocomplete %}{{ HORIZON_CONFIG.password_autocomplete }}{% endblock %}
{% block modal-body %}
<fieldset>