[Mapbender-commits] r2691 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 22 04:02:21 EDT 2008


Author: christoph
Date: 2008-07-22 04:02:21 -0400 (Tue, 22 Jul 2008)
New Revision: 2691

Modified:
   trunk/mapbender/http/php/mod_editUser.php
Log:
http://trac.osgeo.org/mapbender/ticket/238

Modified: trunk/mapbender/http/php/mod_editUser.php
===================================================================
--- trunk/mapbender/http/php/mod_editUser.php	2008-07-22 08:01:37 UTC (rev 2690)
+++ trunk/mapbender/http/php/mod_editUser.php	2008-07-22 08:02:21 UTC (rev 2691)
@@ -126,7 +126,7 @@
 			if (MD5 == 'false'){
 				$pw = $password;
 			}else{
-				$pw = "md5('".$password."')";
+				$pw = md5($password);
 			}
 		}
 		return $pw;
@@ -157,7 +157,7 @@
 		$sql = "Insert INTO mb_user (mb_user_name, mb_user_password,mb_user_owner, mb_user_description, ";
 		$sql .= "mb_user_email, mb_user_phone, mb_user_department, mb_user_resolution) VALUES ";
 		$sql.= "($1,$2,$3,$4,$5,$6,$7,$8)";	
-		$v = array($name,md5($password),$owner_id,$description,$email,$phone,$department,$resolution);
+		$v = array($name,setPassword($password),$owner_id,$description,$email,$phone,$department,$resolution);
 		$t = array('s','s','i','s','s','s','s','i');
 		$res = db_prep_query($sql,$v,$t);
 		$selected_user = db_insert_id($res,"mb_user","mb_user_id");
@@ -389,4 +389,4 @@
 // -->
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>



More information about the Mapbender_commits mailing list