svn commit: r365 - trunk/mapbender/http/php/mod_changePassword.php
uli at osgeo.org
uli at osgeo.org
Wed May 31 02:14:25 EDT 2006
Author: uli
Date: 2006-05-31 06:14:25+0000
New Revision: 365
Modified:
trunk/mapbender/http/php/mod_changePassword.php
Log:
md5 string for passwords
Modified: trunk/mapbender/http/php/mod_changePassword.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_changePassword.php?view=diff&rev=365&p1=trunk/mapbender/http/php/mod_changePassword.php&p2=trunk/mapbender/http/php/mod_changePassword.php&r1=364&r2=365
==============================================================================
--- trunk/mapbender/http/php/mod_changePassword.php (original)
+++ trunk/mapbender/http/php/mod_changePassword.php 2006-05-31 06:14:25+0000
@@ -123,22 +123,9 @@
$t = array('s','i');
$res_password = db_prep_query($sql_password,$v,$t);
if(db_result($res_password,0,"mb_user_password") != db_result($res_password,0,"new")){
- $v = array();
- $t = array();
- $sql_update = "UPDATE mb_user SET mb_user_password = ";
- if (SYS_DBTYPE=="mysql"){
- $sql_update.= "password($1)";
- }
- else{
- if (MD5 == 'false'){
- $sql_update .= "$1";
- }
- else{
- $sql_update .= "md5($1)";
- }
- }
- array_push($v,$newpassword);
- array_push($t,'s');
+ $sql_update = "UPDATE mb_user SET mb_user_password = $1";
+ $v = array(md5($newpassword));
+ $t = array('s');
$sql_update .= " WHERE mb_user_id = $2 ";
array_push($v,$real_user_id);
array_push($t,'i');
More information about the Mapbender_commits
mailing list