Bug 6224 : Revert "3.0.x: ce353e7 bug #3674 allow users creation with disabled password"

This reverts commit 87b792b2b6.
This commit is contained in:
Chris Cormack 2011-04-21 14:45:37 +12:00
parent b52bd0a88c
commit 05eb43f5fc
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ Returns the borrowernumber
sub AddMember {
my (%data) = @_;
my $dbh = C4::Context->dbh;
$data{'password'} = '!' if (not $data{'password'} and $data{'userid'});
$data{'userid'} = '' unless $data{'password'};
$data{'password'} = md5_base64( $data{'password'} ) if $data{'password'};
$data{'borrowernumber'}=InsertInTable("borrowers",\%data);
# mysql_insertid is probably bad. not necessarily accurate and mysql-specific at best.