2 # unset a user's passphrase
4 # Copyright (c) 2002 Dirk Koopman G1TLH
6 # Syntax: unset/passphrase <callsign> ...
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
15 if ($self->remotecmd || $self->inscript) {
16 Log('DXCommand', $self->call . " attempted to unset passphrase for @args remotely");
17 return (1, $self->msg('e5'));
20 if ($self->priv < 9) {
21 Log('DXCommand', $self->call . " attempted to unset passphrase for @args");
22 return (1, $self->msg('e5'));
27 if ($ref = DXUser::get_current($call)) {
28 $ref->unset_passphrase;
30 push @out, $self->msg("passphraseu", $call);
31 Log('DXCommand', $self->call . " unset passphrase for $call");
33 push @out, $self->msg('e3', 'User record for', $call);