On Wednesday, May 9, 2018 at 1:22:05 PM UTC-4, dirman wrote:
>
> how do i block email accounts from registration based on domain ie @
> yahoo.com or @gmail.com and main website domain email accounts?
>

The usual validation mechanisms:

   - Use a validator such as IS_MATCH (with a regular expression that fails 
   if any of the prohibited domains matches) or a custom validator.
   - Add a callback function to auth.settings.register_onvalidation to 
   check (note, this setting is a list of callback functions).

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to