Commits

Anonymous committed f1f202d

oops forgot it... fix issue #8. thanks for report !

  • Participants
  • Parent commits 3095e29

Comments (0)

Files changed (2)

django_authopenid/templates/authopenid/password_change_form.html

+{% extends "base.html" %}
+{% load i18n %}
+
+
+{% block content %}
+
+
+
+
+{% if set_password %}
+<h1>{% trans 'Set password' %}</h1>
+<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+<form action="" method="post">
+{{ form.new_password1.errors }}
+<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
+{{ form.new_password2.errors }}
+<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
+<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
+</form>
+
+{% else %}
+
+<h1>{% trans 'Password change' %}</h1>
+<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+<form action="" method="post">
+
+{{ form.old_password.errors }}
+<p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p>
+{{ form.new_password1.errors }}
+<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
+{{ form.new_password2.errors }}
+<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
+
+<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
+</form>
+
+
+
+{% endif %}
+{% endblock %} 

django_authopenid/views.py

     return render(template_name, {
         'form': form,
         'set_password': set_password
-    }, context_instance=RequestContext(request))
+    }, context_instance=RequestContext(request))
+    
+