RMAINT perltidy C4/SIP/Sip/MsgType.pm and t/db_dependent/SIP/MsgType.t from Bug 42847
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
a34e362d6d
commit
e3bfd193c3
|
|
@ -933,7 +933,6 @@ sub login_core {
|
|||
# authenticated terminal. Only a successful api_auth below re-establishes the session.
|
||||
delete $server->{$_} foreach qw( account ils institution policy sip_username sip_password );
|
||||
|
||||
|
||||
if ( !exists( $server->{config}->{accounts}->{$uid} ) ) {
|
||||
siplog( "LOG_WARNING", "MsgType::login_core: Unknown login '$uid'" );
|
||||
$status = 0;
|
||||
|
|
@ -953,6 +952,7 @@ sub login_core {
|
|||
);
|
||||
$status = 0;
|
||||
} else {
|
||||
|
||||
# Store the active account configuration now user has authenticated
|
||||
$server->{account} = $server->{config}->{accounts}->{$uid};
|
||||
$server->{institution} = $server->{config}->{institutions}->{$inst};
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ subtest 'login_core() authentication tests' => sub {
|
|||
return {
|
||||
config => {
|
||||
accounts => { $uid => { id => $uid, institution => 'CPL', password => 'goodpw' } },
|
||||
institutions => { CPL => { id => 'CPL', implementation => 'ILS', policy => {} } },
|
||||
institutions => { CPL => { id => 'CPL', implementation => 'ILS', policy => {} } },
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue