View | Details | Raw Unified | Return to bug 11807
Collapse All | Expand All

(-)a/C4/Auth_with_ldap.pm (-7 / +1 lines)
Lines 27-33 use C4::Members qw(AddMember changepassword); Link Here
27
use C4::Members::Attributes;
27
use C4::Members::Attributes;
28
use C4::Members::AttributeTypes;
28
use C4::Members::AttributeTypes;
29
use C4::Members::Messaging;
29
use C4::Members::Messaging;
30
use C4::Dates;
31
use C4::Auth qw(checkpw_internal);
30
use C4::Auth qw(checkpw_internal);
32
use Koha::AuthUtils qw(hash_password);
31
use Koha::AuthUtils qw(hash_password);
33
use List::MoreUtils qw( any );
32
use List::MoreUtils qw( any );
Lines 273-283 sub ldap_entry_2_hash { Link Here
273
  		. substr($borrower{ 'surname' },0,1)
272
  		. substr($borrower{ 'surname' },0,1)
274
  		. " ");
273
  		. " ");
275
274
276
    # Date and categorycode conversions
275
    # categorycode conversions
277
    $borrower{'dateexpiry'} = C4::Dates->new($borrower{'dateexpiry'},'sql')->output('iso') if $borrower{'dateexpiry'};
278
    $borrower{'dateofbirth'} = C4::Dates->new($borrower{'dateofbirth'},'sql')->output('iso') if $borrower{'dateofbirth'};
279
    $borrower{'dateenrolled'} = C4::Dates->new($borrower{'dateenrolled'},'sql')->output('iso') if $borrower{'dateenrolled'};
280
281
    if(defined $categorycode_conversions{$borrower{categorycode}}) {
276
    if(defined $categorycode_conversions{$borrower{categorycode}}) {
282
        $borrower{categorycode} = $categorycode_conversions{$borrower{categorycode}};
277
        $borrower{categorycode} = $categorycode_conversions{$borrower{categorycode}};
283
    }
278
    }
284
- 

Return to bug 11807