aboutsummaryrefslogtreecommitdiffstats
path: root/root/forgot_password
diff options
context:
space:
mode:
Diffstat (limited to 'root/forgot_password')
-rw-r--r--root/forgot_password/check.tt4
-rw-r--r--root/forgot_password/complete.tt6
-rw-r--r--root/forgot_password/confirm.tt21
-rw-r--r--root/forgot_password/index.tt17
4 files changed, 48 insertions, 0 deletions
diff --git a/root/forgot_password/check.tt b/root/forgot_password/check.tt
new file mode 100644
index 0000000..b8ec933
--- /dev/null
+++ b/root/forgot_password/check.tt
@@ -0,0 +1,4 @@
+<h2>Success</h2>
+<p>
+[% message %]
+</p> \ No newline at end of file
diff --git a/root/forgot_password/complete.tt b/root/forgot_password/complete.tt
new file mode 100644
index 0000000..3a9995c
--- /dev/null
+++ b/root/forgot_password/complete.tt
@@ -0,0 +1,6 @@
+<h2>[% l('Email sent.') %]</h2>
+
+<p>
+ [% l('Operation was successful.') %]
+ [% l('Check your mail for password reset instructions.') %]
+</p>
diff --git a/root/forgot_password/confirm.tt b/root/forgot_password/confirm.tt
new file mode 100644
index 0000000..3c3e07d
--- /dev/null
+++ b/root/forgot_password/confirm.tt
@@ -0,0 +1,21 @@
+
+<h1>[% l('Enter new password.') %]</h1>
+
+<div id="input_form">
+<form method="post" action="/forgot_password/change_password">
+ <table>
+ <tr>
+ <td><label for="newpassword1_">[% l('New Password') %]</label></td>
+ <td><input id="newpassword1_" name="newpassword1" type="password" value="" /></td>
+ </tr><tr>
+ <td><label for="newpassword2_">[% l('Repeat New Password') %]</label></td>
+ <td><input id="newpassword2_" name="newpassword2" type="password" value="" /></td>
+ </tr><tr>
+ <td colspan="2" style="text-align:center;">
+ <input type="hidden" name="secret" value="[% secret %]" />
+ <button type="submit" value="[% l('Set new password') %]">[% l('Set new password') %]</button>
+ </td>
+ </tr>
+ </table>
+</form>
+</div>
diff --git a/root/forgot_password/index.tt b/root/forgot_password/index.tt
new file mode 100644
index 0000000..c5fbddd
--- /dev/null
+++ b/root/forgot_password/index.tt
@@ -0,0 +1,17 @@
+
+<h1>[% l('Forgot your password?') %]</h1>
+
+<div id="input_form">
+<form method="post" action="/forgot_password/check">
+ <table>
+ <tr>
+ <td><label for="mail_">[% l('Email address') %]</label></td>
+ <td><input id="mail_" type="text" name="mail" value="[% c.request.params.mail %]" /></td>
+ </tr><tr>
+ <td colspan="2" style="text-align:center;">
+ <button type="submit" value="[% l('Reset password') %]">[% l('Reset password') %]</button>
+ </td>
+ </tr>
+ </table>
+</form>
+</div>