From 0b1bff5f3d43cf862c0af66465277abf88d2de65 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 28 Sep 2007 16:45:19 +0200 Subject: [PATCH] Bug Fixing : crypting password before storing them to database. Signed-off-by: Chris Cormack --- C4/Members.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index c27d73fd2c..2ff210b550 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -597,11 +597,10 @@ sub ModMember { $sth->execute; } else { - ( $data{'password'} = md5_base64( $data{'password'} ) ) - if ( $data{'password'} ne '' ); + ( $data{'password'} = md5_base64( $data{'password'} ) ) foreach (keys %data) {push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_} and $data{$_})} ; - + if ( $data{'password'} ne '' ); $query = "UPDATE borrowers SET ".join (",",@parameters)." WHERE borrowernumber=$data{'borrowernumber'}"; # warn "$query"; $sth = $dbh->prepare($query); -- 2.39.5