From: Mike Rylander Date: Wed, 10 Aug 2016 12:47:08 +0000 (-0400) Subject: LP1579144: On Login, Send Location to ILS X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8404478ec651a57eab8c39274925d64b79a6dda6;p=working%2FSIPServer.git LP1579144: On Login, Send Location to ILS In addition to supporting client-side location code for login, allow a fallback value to be set in the configuration file, per account. Signed-off-by: Mike Rylander --- diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index 47df859..0f51459 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -856,6 +856,7 @@ sub handle_login { syslog("LOG_WARNING", "MsgType::handle_login: Invalid password for login '$uid'"); $status = 0; } else { + $sc_loc ||= $server->{config}->{accounts}->{$uid}->{location_code}; _load_ils_handler($server, $uid, $sc_loc); }