X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fpassphrase.pl;h=15ef58d114f7f4d7f3c6d7439ec7d5c3abcbbc0b;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=213e4f92a676baffc1d09382aa2ee1c104b78f7a;hpb=148f4d43135748ba5aff985c50720b370ca1e336;p=spider.git diff --git a/cmd/unset/passphrase.pl b/cmd/unset/passphrase.pl index 213e4f92..15ef58d1 100644 --- a/cmd/unset/passphrase.pl +++ b/cmd/unset/passphrase.pl @@ -12,7 +12,7 @@ my @out; my $user; my $ref; -if ($self->remotecmd) { +if ($self->remotecmd || $self->inscript) { Log('DXCommand', $self->call . " attempted to unset passphrase for @args remotely"); return (1, $self->msg('e5')); } @@ -24,7 +24,7 @@ if ($self->priv < 9) { for (@args) { my $call = uc $_; - if ($ref = DXUser->get_current($call)) { + if ($ref = DXUser::get_current($call)) { $ref->unset_passphrase; $ref->put(); push @out, $self->msg("passphraseu", $call);