}
my $nonce = rand($$);
- my $seed = $U->simplereq(
+
+ my $seed = $U->simplereq(
'open-ils.auth',
'open-ils.auth.authenticate.init', $username, $nonce );
- my $response = $U->simplereq(
- 'open-ils.auth',
- 'open-ils.auth.authenticate.complete',
- {
- username => $username,
- password => md5_hex($seed . md5_hex($password)),
+ my $opts =
+ {
+ username => $username,
+ password => md5_hex($seed . md5_hex($password)),
type => 'opac',
nonce => $nonce
- }
+ };
+
+ if ($self->{login}->{location}) {
+ $opts->{workstation} = $self->{login}->{location};
+ }
+
+ my $response = $U->simplereq(
+ 'open-ils.auth',
+ 'open-ils.auth.authenticate.complete',
+ $opts
);
if( my $code = $U->event_code($response) ) {
--- /dev/null
+Treat SIP Location Field as Login Workstation
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+When using a version of SIPServer that supports the feature,
+the Location (CP) field of the Login (93) message will be
+used as the workstation name if supplied. Blank or missing
+location fields will be ignored. This allows users or reports
+to determine which selfcheck performed a circulation.
+