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'));
}
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);