'verbose' => \$verbose,
'username=s' => \$username,
'password=s' => \$password,
- 'workstation' => \$workstation,
+ 'workstation=s' => \$workstation,
'tempdir=s' => \$tempdir,
'spoolfile=s' => \$spoolfile,
'wait=i' => \$wait_time,
# Login to the auth server and set the global $authtoken var
#----------------------------------------------------------------
sub oils_login {
- my( $username, $password, $type ) = @_;
+ my( $username, $password, $type, $workstation ) = @_;
$type |= "staff";
'open-ils.auth.authenticate.init', $username, $nonce);
err("No auth seed") unless $seed;
- my $opts = { username => $username,
- password => md5_hex($seed . md5_hex($password)),
- type => $type };
+ my $opts = {
+ username => $username,
+ password => md5_hex($seed . md5_hex($password)),
+ type => $type,
+ nonce => $nonce
+ };
if(defined($workstation)) {
$opts->{workstation} = $workstation;