|
From: Benjamin C. <bc...@us...> - 2001-07-21 19:05:33
|
Update of /cvsroot/phpbt/phpbt/templates
In directory usw-pr-cvs1:/tmp/cvs-serv9462/templates
Modified Files:
login.html
Log Message:
Added "Email my password" functionality
Index: login.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/login.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- login.html 2001/07/21 17:41:50 1.3
+++ login.html 2001/07/21 19:05:29 1.4
@@ -28,15 +28,21 @@
<form action='<?php print $GLOBALS[REQUEST_URI] ?>' method='post'>
<input type="hidden" name="formvars" value="<?php echo $formvars ?>">
<table border="0">
- <?php global $username; if ( isset($username) ): ?>
+ <?php global $username, $emailsuccess; if (isset($username)) { ?>
<tr>
<td align='center'>
- <font color=red>
+ <?php if (!$emailsuccess) { ?>
+ <font color='#ff0000'>
<b>Invalid login and/or password</b>
</font>
+ <?php } else { ?>
+ <font color='#0000ff'>
+ <b>Your password has been mailed to you</b>
+ </font>
+ <?php } ?>
</td>
</tr>
- <?php endif ?>
+ <?php } ?>
<tr>
<td>Login (Email):</td>
</tr>
@@ -50,7 +56,10 @@
<td><input size="30" type='password' name='password'></td>
</tr>
<tr>
- <td align="right"><input type="submit" value="Go"></td>
+ <td align="right">
+ <input type="submit" name="emailpass" value="Email my password">
+ <input type="submit" value="Go">
+ </td>
</tr>
<tr>
<td align="center">
|