From dbb2ba492350073869cebaf75e7e972053d50a0c Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Thu, 21 Apr 2011 15:09:41 -0400 Subject: [PATCH] Revert "3.0.x: ce353e7 bug #3674 allow users creation with disabled password" This reverts commit 87b792b2b61c8232c2facecf6feb2ce5f3fa2b9e. --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index dcbb0b07d0..3eb68336e3 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -749,7 +749,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. -- 2.39.5