Disable User by default

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 17, 2010   (RSS)

By gversion - September 17, 2010

Hello,

I am using the Membership Add-on but I would like to approve users before they are able to login.

I have therefore tried to just set the "Default State" for the field "Disable account (user won't be able to login)" to be "Checked".

However, this does not appear to work so I was wondering if anyone could help me with this?

Thanks very much.

Greg

Re: [gversion] Disable User by default

By Chris - September 17, 2010

Hi Greg,

The disabled field is set manually by your signup script. Look for a line like this:

disabled = '0',

(In sample_signup.php, you can find that on line 46.)

You'll want to change that in your own signup script to:

disabled = '1',

I hope this helps! Please let me know if you have any questions.
All the best,
Chris