Hi all.
Access rules permit to use just "%
" and "_
" as special symbols to compose the rule's masks. But I need to do the following and can't get it working.
First problem.
The signup process of my drupal site requires:
1. registrant's mail MUST be on "@alpha.com
" domain.
2. everyone MUST NOT have a dot on the first part of the address e.g.: "gamma.omega@alpha.com
".
I can get the first working but, once I insert "ALLOW %@alpha.com
" rule, I can't get the second working ("DENY %.%@alpha.com
").
I would solve the problem with regular expressions (since allowed emails has a fixed scheme like <letter>+<numbers>@alpha.com
and denied emails have just letters, like <letters>.<letters>@alpha.com
) but Drupal doesn't let use them.
Second problem.
If I have a list (say it in MySQL, for example) there's a way to permit signup ONLY to the emails in that list?
Thank you very very much.
-Rezzo
Comments
Donation
I'm not a coder so I can't estimate how much work these problems require. If you have good solution for just one or both, and if you want a money reward, contact me through the contact form in my profile and we'll agree on that.
Thank you again.
I think my second problem is
I think my second problem is not a problem anymore if Drupal support a high number of access rules (1000+). I can insert my list of good emails directly in the "access" mysql table.
I just hope sign-up/registering process won't get slow doing so.
About the first problem, where's located the function which checks the validity of an access' mask? I found user_deny() but doesn't look very clear to me.
Thanks