don't prepend *SUSPENDED* to passwords to suspend an account
authorivan <ivan>
Fri, 30 Jan 2004 03:05:59 +0000 (03:05 +0000)
committerivan <ivan>
Fri, 30 Jan 2004 03:05:59 +0000 (03:05 +0000)
FS/FS/svc_acct.pm

index 3ddd70a..9d8566d 100644 (file)
@@ -619,16 +619,6 @@ Called by the suspend method of FS::cust_pkg (see L<FS::cust_pkg>).
 sub suspend {
   my $self = shift;
   return "can't suspend system account" if $self->_check_system;
 sub suspend {
   my $self = shift;
   return "can't suspend system account" if $self->_check_system;
-  my %hash = $self->hash;
-  unless ( $hash{_password} =~ /^\*SUSPENDED\* /
-           || $hash{_password} eq '*'
-         ) {
-    $hash{_password} = '*SUSPENDED* '.$hash{_password};
-    my $new = new FS::svc_acct ( \%hash );
-    my $error = $new->replace($self);
-    return $error if $error;
-  }
-
   $self->SUPER::suspend;
 }
 
   $self->SUPER::suspend;
 }