Lines 72-78
my $borrower = GetMember( borrowernumber => $borrowernumber );
Link Here
|
72 |
is($reply->{'id'}, $borrowernumber, "userid is not case sensitive - Patron authenticated"); |
72 |
is($reply->{'id'}, $borrowernumber, "userid is not case sensitive - Patron authenticated"); |
73 |
is($reply->{'code'}, undef, "Error code undef"); |
73 |
is($reply->{'code'}, undef, "Error code undef"); |
74 |
|
74 |
|
75 |
TODO: { local: $TODO = "Can't use cardnumber for authentication with ILS-DI yet."; |
|
|
76 |
$query->param('username',$borrower->{'cardnumber'}); |
75 |
$query->param('username',$borrower->{'cardnumber'}); |
77 |
$reply = C4::ILSDI::Services::AuthenticatePatron($query); |
76 |
$reply = C4::ILSDI::Services::AuthenticatePatron($query); |
78 |
is($reply->{'id'}, $borrowernumber, "cardnumber and password - Patron authenticated"); |
77 |
is($reply->{'id'}, $borrowernumber, "cardnumber and password - Patron authenticated"); |
Lines 88-93
TODO: { local: $TODO = "Can't use cardnumber for authentication with ILS-DI yet.
Link Here
|
88 |
$reply = C4::ILSDI::Services::AuthenticatePatron($query); |
87 |
$reply = C4::ILSDI::Services::AuthenticatePatron($query); |
89 |
is($reply->{'code'}, 'PatronNotFound', "non-existing cardnumer/userid - PatronNotFound"); |
88 |
is($reply->{'code'}, 'PatronNotFound', "non-existing cardnumer/userid - PatronNotFound"); |
90 |
is($reply->{'id'}, undef, "id undef"); |
89 |
is($reply->{'id'}, undef, "id undef"); |
91 |
} |
|
|
92 |
|
90 |
|
93 |
} |
91 |
} |
94 |
- |
92 |
|