Skip to content

Commit

Permalink
Merge pull request #264 from okfn/264-fix-500-on-password-reset
Browse files Browse the repository at this point in the history
500 server error on password reset
  • Loading branch information
vitorbaptista committed Feb 28, 2013
2 parents b910809 + 4b75acf commit d6fbfa9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/templates/user/perform_reset.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "page.html" %}
{% import "macros/form.html" as form %}

{% block subtitle %}{{ _('Reset Your Password') }}{% endblock %}

Expand All @@ -13,8 +14,8 @@ <h1 class="module-heading">{{ _('Reset Your Password') }}</h1>
{% block form %}
<form class="form-horizontal" action="" method="post">
{{ form.errors(error_summary) }}
{{ form.input("password1", id="field-password", label=_("Password"), type="password", placeholder="••••••••", value=data.password1, error=errors.password1, classes=["control-medium"]) }}
{{ form.input("password2", id="field-confirm-password", label=_("Confirm"), type="password", placeholder="••••••••", value=data.password2, error=errors.password1, classes=["control-medium"]) }}
{{ form.input("password1", id="field-password", label=_("Password"), type="password", value='', error='', attrs={'autocomplete': 'no'}, classes=["control-medium"]) }}
{{ form.input("password2", id="field-confirm-password", label=_("Confirm"), type="password", value='', error='', attrs={'autocomplete': 'no'}, classes=["control-medium"]) }}
<div class="form-actions">
<button class="btn btn-primary" type="submit" name="save">{{ _("Update Password") }}</button>
</div>
Expand Down

0 comments on commit d6fbfa9

Please sign in to comment.