diff options
Diffstat (limited to 'root')
-rw-r--r-- | root/email/forgot_password.tt | 7 | ||||
-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 | ||||
-rw-r--r-- | root/index.tt | 3 |
6 files changed, 56 insertions, 2 deletions
diff --git a/root/email/forgot_password.tt b/root/email/forgot_password.tt new file mode 100644 index 0000000..4826955 --- /dev/null +++ b/root/email/forgot_password.tt @@ -0,0 +1,7 @@ +[% l('Dear [_1],',cn) %] +[% l('Your [_1] account has been requested to change the password. If you did not do this, or you do not want to change your password; you can just do nothing.',c.config.organisation) %] +[% l('To reset your password, please follow the link below.') %] +[% url %] + +-- +http://mageia.org/ 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> diff --git a/root/index.tt b/root/index.tt index 8e1720c..de256f6 100644 --- a/root/index.tt +++ b/root/index.tt @@ -14,8 +14,7 @@ </div> <div id="login_form_line"> <span><a href="/register">[% l('Register') %]</a> | - @todo [% l('Forgotten password?') %] - <!--<a href="/forgot_password">[% l('Forgotten password?') %]</a> --> + <a href="/forgot_password">[% l('Forgotten password?') %]</a> </span> </div> </form> |