auth.settings.registration_requires_approval = True 

is not the same as 

  auth.settings.registration_requires_verification = False

When you require verification it means if you have email setup the user 
will get an email with a public link to verify registration.
When you require approval, the administrator has to use the appadmin and 
remove 'pending' from the registration_key field for the record.

This is a manual process.

I am not sure what you mean by "a new registration immediatly logs in and 
corresponding db field is still empty".

Massimo


On Wednesday, 19 August 2015 08:22:32 UTC-5, Karl-Thomas Schmidt wrote:
>
> Hi@ all, 
>
> Having this lines in db.py 
> auth = Auth(db) 
> auth.settings.registration_requires_approval = True 
> auth.settings.login_after_registration = False 
> a new registration immediatly logs in and corresponding db field is still 
> empty. 
>
> Running 2.11.2-stable+timestamp.2015.05.30.16.33.24 (Running on 
> nginx/1.2.1, 
> Python 2.7.3) 
>
> What do i miss here? 
>
>
>

-- 
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