[Mapbender-commits] r3088 - branches/beck_dev/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Oct 1 07:03:57 EDT 2008


Author: beck
Date: 2008-10-01 07:03:57 -0400 (Wed, 01 Oct 2008)
New Revision: 3088

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-10-01 09:51:00 UTC (rev 3087)
+++ branches/beck_dev/http/php/mod_forgottenPassword.php	2008-10-01 11:03:57 UTC (rev 3088)
@@ -18,7 +18,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 import_request_variables("PG");
-//require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
 require_once(dirname(__FILE__)."/../classes/class_administration.php");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -64,19 +64,19 @@
 	$upd = false;
 	
 	if ($_POST["sendnew"]) {
-		if ($_POST["username"] && $_POST["email"]) {
+		if ($_POST["username"]) {
 			$id = $admin->getUserIdByUserName($_POST["username"]);
 			$user_id = $id;
 	
-			if($user_id && ($_POST["email"]== $admin->getEmailByUserId($user_id))) {
+			if ($user_id) {
 				$upd=true;
 			}
 			else {
-				echo "Your username and e-mail address could not be found. Please try again!<br><br>";
+				echo "Your username could not be found. Please try again!<br><br>";
 			}
 		}
 		else {
-			echo "Please fill in your username and e-mail address.<br><br>";
+			echo "Please fill in your username.<br><br>";
 		}
 	}
 	
@@ -137,14 +137,7 @@
 	echo "<td>";
 	echo "<input type='text' name='username' value=''>";
 	echo "</td>";
-	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>";
 	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