Bug 36575: (bug 34893 follow-up) Return patron from LDAP
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
4e57729fb0
commit
a1e314e53f
1 changed files with 7 additions and 6 deletions
|
@ -212,12 +212,13 @@ sub checkpw_ldap {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($borrowernumber) {
|
if ($borrowernumber) {
|
||||||
if ($config{update}) { # A1, B1
|
if ( $config{update} ) { # A1, B1
|
||||||
my $c2 = &update_local($local_userid,$password,$borrowernumber,\%borrower) || '';
|
my $c2 = &update_local( $local_userid, $password, $borrowernumber, \%borrower ) || '';
|
||||||
($cardnumber eq $c2) or warn "update_local returned cardnumber '$c2' instead of '$cardnumber'";
|
( $cardnumber eq $c2 ) or warn "update_local returned cardnumber '$c2' instead of '$cardnumber'";
|
||||||
} else { # C1, D1
|
} else { # C1, D1
|
||||||
# maybe update just the password?
|
# maybe update just the password?
|
||||||
return(1, $cardnumber, $local_userid);
|
my $patron = Koha::Patrons->find($borrowernumber);
|
||||||
|
return ( 1, $cardnumber, $local_userid, $patron );
|
||||||
}
|
}
|
||||||
} elsif ($config{replicate}) { # A2, C2
|
} elsif ($config{replicate}) { # A2, C2
|
||||||
my @columns = Koha::Patrons->columns;
|
my @columns = Koha::Patrons->columns;
|
||||||
|
|
Loading…
Reference in a new issue