diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-01-07 23:20:14 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-01-07 23:20:14 +0000 |
commit | 5f8c9ba5f32c0dab7752a7c50dab5b82639f81ef (patch) | |
tree | 48c83c63482380e25f93b544be518ecc6355bb3b /root/forgot_password | |
parent | f07e6b1361c4817980888496a14b9b8d1fd5578d (diff) | |
download | identity-5f8c9ba5f32c0dab7752a7c50dab5b82639f81ef.tar identity-5f8c9ba5f32c0dab7752a7c50dab5b82639f81ef.tar.gz identity-5f8c9ba5f32c0dab7752a7c50dab5b82639f81ef.tar.bz2 identity-5f8c9ba5f32c0dab7752a7c50dab5b82639f81ef.tar.xz identity-5f8c9ba5f32c0dab7752a7c50dab5b82639f81ef.zip |
commit implement forgot_password patch from Maarten Vanraes
Diffstat (limited to 'root/forgot_password')
-rw-r--r-- | root/forgot_password/check.tt | 4 | ||||
-rw-r--r-- | root/forgot_password/complete.tt | 6 | ||||
-rw-r--r-- | root/forgot_password/confirm.tt | 21 | ||||
-rw-r--r-- | root/forgot_password/index.tt | 17 |
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> |