Changeset 408


Ignore:
Timestamp:
10/05/12 13:39:18 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Copy munging of "state"/"status" from addDomain() to addUser() for consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r406 r408  
    25882588  return ('FAIL', "Missing one or more required entries") if !defined($state);
    25892589  return ('FAIL', "Username must not be blank") if !$username;
     2590
     2591  # Munge in some alternate state values
     2592  $state = 1 if $state =~ /^active$/;
     2593  $state = 1 if $state =~ /^on$/;
     2594  $state = 0 if $state =~ /^inactive$/;
     2595  $state = 0 if $state =~ /^off$/;
    25902596
    25912597  my $type = shift || 'u';      # create limited users by default - fwiw, not sure yet how this will interact with ACLs
Note: See TracChangeset for help on using the changeset viewer.