Actually on a second thought....

auth.settings.registration_requires_verification = True
auth.settings.login_after_registration = True

does what you asked already. No?

On Wednesday, 11 November 2015 09:04:15 UTC-6, Massimo Di Pierro wrote:
>
> This is tricky to do without changing the current auth code. So I did, 
> please check it:
>
> auth.settings.login_once_after_registration = True
>
>
>
> On Thursday, 5 November 2015 07:54:55 UTC-6, arihant daga wrote:
>>
>> I want users to enable automatically login after email verification but 
>> not allowing them login right after registration before email verification. 
>> Currently i have these settings. 
>>
>> auth.settings.registration_requires_verification = True
>> auth.settings.login_after_registration = False
>> auth.settings.registration_requires_approval = False 
>> auth.settings.verify_email_next=URL('default','index')
>>
>>
>> So right now it stops user after registering and send a verification 
>> email. When user clicks on the link he is taken to index page but is not 
>> logged in automatically. How ca i achieve login after email verification 
>> automatically? 
>>
>>

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