diff --git a/src/forgot.php b/src/forgot.php index 0b37a04..80f32a2 100644 --- a/src/forgot.php +++ b/src/forgot.php @@ -55,72 +55,15 @@ if (isset($_POST["action"])) { } } } -echo "\r\n"; -?> - - - -Gift Registry - Forgot Password - - - - - -

- Shortly, you will receive an e-mail with your new password.

-

Once you've received your password, click here to login.

- -
- -
- - - - - - - - - - - - - - -
Retrieve Your Password
-

- Supply your username and click Submit. - Your password will be reset and the new password will be sent to the e-mail address you have associated with your account. -

- " . $error . ""; - ?> -
Username - "/> -
- -
-
-
- assign('error', $error); } +$smarty->assign('action', $_POST["action"]); +$smarty->assign('username', $username); +$smarty->assign('opt', $OPT); +$smarty->display('forgot.tpl'); ?> - - diff --git a/src/templates/forgot.tpl b/src/templates/forgot.tpl new file mode 100644 index 0000000..3b261f2 --- /dev/null +++ b/src/templates/forgot.tpl @@ -0,0 +1,84 @@ +{* +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*} + + + + + Gift Registry - Forgot Password + + + + + + + +
+ + {if isset($action) && $action == "forgot" && $error == ""} +
+
+
+

Shortly, you will receive an e-mail with your new password.

+

Once you've received your password, click here to login.

+
+
+
+ {else} +
+
+
+ +
+ Reset Your Password +
+ +
+ + {if isset($error)} + {$error|escape:'htmlall'} + {/if} +

+ Supply your username and click Submit.
+ Your password will be reset and the new password will be sent to the e-mail address you have associated with your account. +

+

+
+
+ + +
+
+
+
+
+ {/if} +
+ + + + +