Membership login - admin approval?

7 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 27, 2012   (RSS)

Hi, there.

Does anyone know of a way to allow new members to sign up and receive a password after their application has been approved by someone with a CMSB admin account? Currently anyone that's not set up can sign up and a password is automatically emailed to them. The client wants it set so that they have to personally authorize the addition of every user.

Thanks,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Membership login - admin approval?

By Jason - July 23, 2012

Hi Nigel,

There are a couple of options here.

The first thing you'll need to do is change the signup script so that the "disabled" field is checked by default. This would stop someone from logging in even if they had the password. It will also make it easy for admins to identify which accounts need to be approved. After that, you should remove the code that sends the email.

Next, you have a couple of options:
1) When an admin approves an account (ie, changes disabled from checked to unchecked), they create a new password for the user, and manually email them.

2) We write a custom plugin that when the account is approved, a new random password is generated and emailed to the user.

If you are interested in the second options, please email consulting@interactivetools.com to go over options.

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/

Re: [Jason] Membership login - admin approval?

Thanks for the advice, Jason. I'll try the option #1 first.

Cheers,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Membership login - admin approval?

By Jason - July 24, 2012

Hi Nigel,

Sure, what you can do is have an if statement that looks for the existence of the $CURRENT_USER variable.

For example:

<?php if ($CURRENT_USER): ?>
// code/HTML for when a person is logged in
<?php else: ?>
// code/HTML for when a person is not logged in.
<?php endif ?>


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/

Re: [Jason] Membership login - admin approval?

That works perfectly! Thanks for your help.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Membership login - admin approval?

By gkornbluth - July 27, 2012 - edited: July 27, 2012

Hi Nigel,

Sorry I didn't see your post earlier.

I send a password only after a member is approval for an organization I work with, and I've documented the process and code in my CMSB Cookbook thecmsbcookbook.com. in a recipe called IMPLEMENTING THE (CORRECTED) EMAILONAPPROVED PLUGIN WITH THE WEBSITE MEMBERSHIP PLUGIN (ENCRYPTED PASSWORDS).

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php