Re: [w2py-dev] Re: [web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-26 Thread Massimo Di Pierro
I did not check it but I think your idea below should work. Check trunk. On Aug 26, 2011, at 1:36 AM, Bruno Rocha wrote: > Very nice feature, I am using. but there is a small problem. > > to reproduce do this: > > set: > auth.settings.registration_requires_verification = True > auth.settings.l

Re: [web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-25 Thread Bruno Rocha
temporarily solved with auth.settings.verify_email_next = URL(r=request, c='default', f='user', args='logout') so when user loggin again he got no auth.user.registration_key But, there is a way to do it inside tools.py verify_email ?

Re: [web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-25 Thread Bruno Rocha
Or, we need to logout the user and force the to login again.

Re: [web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-25 Thread Bruno Rocha
Very nice feature, I am using. but there is a small problem. to reproduce do this: set: auth.settings.registration_requires_verification = True auth.settings.login_after_registration = True decorate action with: @auth.requires(auth.user and not auth.user.registration_key) user registers and log

[web2py] new feature in trunk: auth.settings.login_after_registration

2011-08-25 Thread Massimo Di Pierro
Some times I need the following: I want people to register and be able to play with some parts of the app but not everything until they verify their email. yet I do not want them to have to wait for the email in oder to se the system. Now (in trunk) you can do: auth.settings.registration