Password reset, standardize some stuff.
[cas.git] / src / accounts / templates / registration / password_reset_confirm.html
diff --git a/src/accounts/templates/registration/password_reset_confirm.html b/src/accounts/templates/registration/password_reset_confirm.html
new file mode 100644 (file)
index 0000000..e8292ab
--- /dev/null
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+
+{% block title %}{{ title }}{% endblock %}
+
+
+{% block content %}
+<div class="enclose">
+  <div class="enclosed">
+    <h1>{{ title }}</h1>
+
+    {% if validlink %}
+
+      <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
+
+      <form method="post">
+        {% csrf_token %}
+        {{ form.as_p }}
+        <button type="submit">{% trans 'Change my password' %}</button>
+      </form>
+
+    {% else %}
+      <p>{% trans "The password reset link was invalid, possibly because it has already been used.  Please request a new password reset." %}</p>
+    {% endif %}
+  </div>
+</div>
+{% endblock %}