I have an existing body of several thousand members and want them to be able to register automatically on a drupal site by providing information that we already know about, including membership numbers and email addresses. I'm writing a module for this and want the approval/delay decision to be taken in that module.
As far as I can see, I can't do this directly in drupal (4.7). The code in the user.module (user_register_submit()) takes the decision purely on the basis of the global settings (the user_register variable) so there's no way I can do it directly except by modifying user.module, which I don't want to do.
Is this correct? Are there any plans to make this more flexible?
I can do it indirectly by approving the membership in the database and putting something in the welcome email that tells them they can sign up straight away, but it's not entirely satisfactory because there isn't an easy way to tell them immediately.
Any ideas?
Comments
There used to be a role
There used to be a role delay module for 4.6. You could check that out for some ideas.
easier to forget the delay
Actually I solved this problem by forgetting the delay.
In other words, if the applicant gives the right information, the registration works immediately. If it fails, then we just tell them to call the office to get someone to help them.
I figured the staff have better things to do than pour over thousands of attempts to register which includes non-members trying to guess the right combination.