Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added password reset templates to admin_templates

git-svn-id: http://code.djangoproject.com/svn/django/trunk@294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8ef422d070ecd19ab285282430b174513736aa9d 1 parent 837a645
Wilson Miner authored
View
11 django/conf/admin_templates/registration/password_change_done.html
@@ -0,0 +1,11 @@
+{% extends "base_site" %}
+
+{% block title %}Password change successful{% endblock %}
+
+{% block content %}
+
+<h1>Password change successful</h1>
+
+<p>Your password was changed.</p>
+
+{% endblock %}
View
23 django/conf/admin_templates/registration/password_change_form.html
@@ -0,0 +1,23 @@
+{% extends "base_site" %}
+
+{% block title %}Password change{% endblock %}
+
+{% block content %}
+
+<h1>Password change</h1>
+
+<p>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">
+
+{% if form.old_password.errors %}{{ form.old_password.html_error_list }}{% endif %}
+<p class="aligned wide"><label for="id_old_password">Old password:</label>{{ form.old_password }}</p>
+{% if form.new_password1.errors %}{{ form.new_password1.html_error_list }}{% endif %}
+<p class="aligned wide"><label for="id_new_password1">New password:</label>{{ form.new_password1 }}</p>
+{% if form.new_password2.errors %}{{ form.new_password2.html_error_list }}{% endif %}
+<p class="aligned wide"><label for="id_new_password2">Confirm password:</label>{{ form.new_password2 }}</p>
+
+<p><input type="submit" value="Change my password" /></p>
+</form>
+
+{% endblock %}
View
11 django/conf/admin_templates/registration/password_reset_done.html
@@ -0,0 +1,11 @@
+{% extends "base_site" %}
+
+{% block title %}Password reset successful{% endblock %}
+
+{% block content %}
+
+<h1>Password reset successful</h1>
+
+<p>We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly.</p>
+
+{% endblock %}
View
14 django/conf/admin_templates/registration/password_reset_email.html
@@ -0,0 +1,14 @@
+You're receiving this e-mail because you requested a password reset
+for your user account at {{ site_name }}.
+
+Your new password is: {{ new_password }}
+
+Feel free to change this password by going to this page:
+
+http://{{ domain }}/password_change/
+
+Your username, in case you've forgotten, is {{ user.username }}
+
+Thanks for using our site!
+
+The {{ site_name }} team
View
16 django/conf/admin_templates/registration/password_reset_form.html
@@ -0,0 +1,16 @@
+{% extends "base_site" %}
+
+{% block title %}Password reset{% endblock %}
+
+{% block content %}
+
+<h1>Password reset</h1>
+
+<p>Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you.</p>
+
+<form action="" method="post">
+{% if form.email.errors %}{{ form.email.html_error_list }}{% endif %}
+<p><label for="id_email">E-mail address:</label> {{ form.email }} <input type="submit" value="Reset my password" /></p>
+</form>
+
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.