Hi there,

We're working on our corporate website using Drupal and Drupal rocks!

We have run into a minor problem which I would like to seek other's experience on this matter.

We would like to authorize potential customers to download our software after they register. We may not apporove their registartation right away due to time difference etc. etc. The problem is that Drupal's user.module sends them password information before their account has been approved. Is there a hack I can use to delay emailing the password information until their registration has been approved?

Much thanks
/Alex

Comments

kbahey’s picture

First method:

1. Go to /admin/user/configure
2. Change public registrations to "Visitors can create accounts but administrator approval is required."

Second method:
1. Create a new role (called "approved user")
2. Create an area that is for this role only (use the taxonomy access for this)
3. Post the info you want only for approved users to that taxonomy term.

--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

teshager’s picture

Kbahey, thanks for you recommendation.

I had used your "First method". As soon as a customer registers he/she gets an email stating their login, passwd. If they try to immediately login before I get a chance to approve their registration they will be denied access. My question is can the registration confirmation sent to the user be sent when I approve the registration instead?

Much thanks
/Alex

kbahey’s picture

Seems like a future module called : reg_confirm or something.

--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

bigbman’s picture

Quite frankly, I'm quite surprised, and a little deissapointed that Drupal doesn't already have this feature. Has anyone done this yet?

kloomis’s picture

What I find odd and also not clearly explained in the user admin screen is that users are not notified when they are approved although there is a message for approval. In other words, if a user registers and the system has been set to require admin approval, the user gets a message that his or her registration is waiting approval. Then when the admin approves the registration, nothing is sent to the user.

If the system is set for admin approval of registrations, then once that registration is approved, the user should be sent a notification. Otherwise he doesn' know when it's okay to go back and try to access the site.

bigbman’s picture

This is exactly what I was expecting, and would like to see in Drupal. It would be nice if there was some way to alert the admin (via email) that new users have registered as well.

Anyone know if there's a way to override this workflow by creating a 'User Admin' module, or will this require a modification to the Drupal core?

bernie’s picture

does anyone know of a module/hack which will address this issue?

zakpet’s picture

I think I'm experiencing a similar issue. I'm testing my site by creating some dummy accounts and although I have my settings set to "Visitors can create accounts but administrator approval is required," all the accounts I create receive a working email address. I, the Admin., don't receive anything in my email allowing me to "approve" them.

Are they being automatically approved? I assume so because the passwords work properly.

How can I set it up so that only I can make passwords work?

venkat-rk’s picture

I am not entirely sure, but the role delay module might be the answer for your requirements:
http://drupal.org/node/28873

However, since it is a corporate site, please look at some of the issues related to the module before deciding to go with it.

There is also the LogginToboggan module which implements a user registration system slightly different from Drupal:
http://drupal.org/node/34309

alans’s picture

Had the same issue with one of the sites I work on, so I created this patch.

http://drupal.org/node/48835

Hope it helps.

bigbman’s picture

Works well (so far) for me!!! Thanks a million!!!

mwu’s picture

apparently you can use the user status module
http://drupal.org/project/user_status

however, i agree that it's good for administrator to receive email. i haven't seen anything about that yet.

fureigh’s picture

Old thread, but posting in case anyone stumbles across it: as of Drupal 6, you can do this by using Actions and Triggers (optional core modules) or the Rules module.

weevilofdoom’s picture

Could you perhaps detail how? Thanks!