my $seed = $U->simplereq(
'open-ils.auth',
'open-ils.auth.authenticate.init',
- $self->{config}->{username}
+ $self->{config}->{credentials}->{username}
);
# Actually login.
'open-ils.auth',
'open-ils.auth.authenticate.complete',
{
- username => $self->{config}->{username},
+ username => $self->{config}->{credentials}->{username},
password => md5_hex(
- $seed . md5_hex($self->{config}->{password})
+ $seed . md5_hex($self->{config}->{credentials}->{password})
),
type => 'staff',
- workstation => $self->{config}->{workstation}
+ workstation => $self->{config}->{credentials}->{workstation}
}
);
if ($response) {
my $result = $e->retrieve_config_bib_source($data->{cbs});
$cbs = $result if ($result);
} else {
- my $result = $e->search_config_bib_source({source => $data-});
+ my $result = $e->search_config_bib_source({source => $data});
if ($result && @$result) {
$cbs = $result->[0]; # Use the first one.
}