[Mapbender-commits] r3056 - branches/beck_dev/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Sep 30 08:06:23 EDT 2008
Author: beck
Date: 2008-09-30 08:06:23 -0400 (Tue, 30 Sep 2008)
New Revision: 3056
Modified:
branches/beck_dev/http/php/mod_forgottenPassword.php
Log:
Modified: branches/beck_dev/http/php/mod_forgottenPassword.php
===================================================================
--- branches/beck_dev/http/php/mod_forgottenPassword.php 2008-09-30 11:20:24 UTC (rev 3055)
+++ branches/beck_dev/http/php/mod_forgottenPassword.php 2008-09-30 12:06:23 UTC (rev 3056)
@@ -64,19 +64,19 @@
$upd = false;
if ($_POST["sendnew"]) {
- if ($_POST["username"]) {
+ if ($_POST["username"] && $_POST["email"]) {
$id = $admin->getUserIdByUserName($_POST["username"]);
$user_id = $id;
- if ($user_id) {
+ if($user_id && ($_POST["email"]== $admin->getEmailByUserId($user_id))) {
$upd=true;
}
else {
- echo "Your username could not be found. Please try again!<br><br>";
+ echo "Your username and e-mail address could not be found. Please try again!<br><br>";
}
}
else {
- echo "Please fill in your username.<br><br>";
+ echo "Please fill in your username and e-mail address.<br><br>";
}
}
@@ -137,7 +137,14 @@
echo "<td>";
echo "<input type='text' name='username' value=''>";
echo "</td>";
- echo"</tr>";
+ echo"</tr><tr>";
+ echo "<td>";
+ echo "E-Mail:";
+ echo "</td>";
+ echo "<td>";
+ echo "<input type='text' name='email' value=''>";
+ echo "</td>";
+ echo "</tr>";
echo"<tr><td>";
echo "<input type='hidden' name='upd' value=''>";
echo "<center><br><input type='submit' name='sendnew' value='Order a new Password'></center>";
More information about the Mapbender_commits
mailing list