register_next sets the default behaviour but it is overwritten if there is 
a _next attribute in the url. Instead you can do

auth.settings.register_onaccept = lambda form: redirect(URL('welcome'))




On Saturday, 28 June 2014 03:44:24 UTC-5, Sarbjit wrote:
>
> Hi,
>
> I want to send an email to the user stating that there account approval is 
> in process. So, I set the following in db.py :-
>
> auth.settings.register_next = URL('Welcome')
> auth.settings.registration_requires_verification = False
> auth.settings.registration_requires_approval = True
> auth.settings.reset_password_requires_verification = True
>
> But, after registration only flash message appears and "welcome" function 
> is not called in controller.
>
> Can anyone please suggest on how this can be achieved?
>
> -Sarbjit
>

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