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
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 ?
Or, we need to logout the user and force the to login again.
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
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
5 matches
Mail list logo