website members set to disabled by default upon signup

By Jason - September 16, 2013

Hi Zick,

There isn't a "disabled" field in the accesslist section, so that method won't work.  Are you adding users to the accounts section, or a separate members section? 

Do you want to disable a user's account until they are approved, so they can't login until they are approved?  If so, you can set the disabled field in the member account like this:

   // fields defined by form:
      //$colsToValues['agree_tos']      = $_REQUEST['agree_tos'];
      $colsToValues['fullname']         = $_REQUEST['fullname'];
      $colsToValues['email']            = $_REQUEST['email'];
      $colsToValues['username']         = coalesce( @$_REQUEST['username'], $_REQUEST['email'] ); // email is saved as username if usernames not supported
      $colsToValues['password']         = $passwordHash;
      $colsToValues['disabled']         = 1;
      // ... add more form fields here by copying the above line!

Hope this helps

---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/