projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b52bd0a
)
Bug 6224 : Revert "3.0.x: ce353e7 bug #3674 allow users creation with disabled password"
author
Chris Cormack
<chrisc@catalyst.net.nz>
Thu, 21 Apr 2011 02:45:37 +0000
(14:45 +1200)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Thu, 21 Apr 2011 02:45:37 +0000
(14:45 +1200)
This reverts commit
87b792b2b61c8232c2facecf6feb2ce5f3fa2b9e
.
C4/Members.pm
patch
|
blob
|
history
diff --git
a/C4/Members.pm
b/C4/Members.pm
index
f0ac280
..
a151e03
100644
(file)
--- a/
C4/Members.pm
+++ b/
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.