Skip to content

Commit

Permalink
Merge pull request #402 from okfn/402-password-in-clear
Browse files Browse the repository at this point in the history
New password not hidden when changing password
  • Loading branch information
johnmartin committed Feb 19, 2013
2 parents 26c75e5 + 2e8f7f9 commit 90a6ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/user/edit_user_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<fieldset>
<legend>{{ _('Change your password') }}</legend>

{{ form.input('password1', label=_('Password'), id='field-password', value=data.password1, error=errors.password1, classes=['control-medium']) }}
{{ form.input('password1', type='password', label=_('Password'), id='field-password', value=data.password1, error=errors.password1, classes=['control-medium'], attrs={'autocomplete': 'off'} ) }}

{{ form.input('password2', label=_('Confirm Password'), id='field-password-confirm', value=data.password2, error=errors.password2, classes=['control-medium']) }}
{{ form.input('password2', type='password', label=_('Confirm Password'), id='field-password-confirm', value=data.password2, error=errors.password2, classes=['control-medium'], attrs={'autocomplete': 'off'}) }}
</fieldset>

<div class="form-actions">
Expand Down

0 comments on commit 90a6ef2

Please sign in to comment.