Skip to content
Browse files

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

… disabled password"

This reverts commit 87b792b.
  • Loading branch information...
1 parent b52bd0a commit 05eb43f5fc00889420e03845b5059d80bf1663ad @ranginui ranginui committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 C4/Members.pm
View
2 C4/Members.pm
@@ -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.

0 comments on commit 05eb43f

Please sign in to comment.
Something went wrong with that request. Please try again.