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:
wainuiwitikapark 2026-08-14 00:47:52 +00:00 committed by Wainui Witika-Park
parent a34e362d6d
commit e3bfd193c3
No known key found for this signature in database
GPG Key ID: 2D0A6AB5DAF1B78D
2 changed files with 2 additions and 2 deletions

View File

@ -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};

View File

@ -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 => {} } },
},
};
};