On Saturday, April 30, 2011 10:53:11 PM UTC-4, niknok wrote: 
>
> After registration, user is automatically logged in (when verification is 
> set to False). How do I direct a newly registered user to a series of pages?
>
> I have a number of pages, I would like a user to go through. I tried: 
>
> auth.settings.register_next =[URL(c='default',f='profile'), 
> URL(c='default',f='address',args=(0,user_id,1,1))]
>
>
> But, it only works for a single page.  I thought of adding the redirect at 
> the end of each function, but those functions are later accessed without the 
> need for redirection.
>
 
Maybe try something like:
 
auth.settings.register_next = URL(c='default',f='profile', args=('new'))
 
Then your profile function can check for the 'new' argument, and if present, 
do the appropriate redirect after the profile is submitted. The next 
function could also accept and check for a 'new' argument, and so on. Or you 
could put some kind of 'new registration' flag in the session and have each 
function check the session instead of the arguments.
 
Anthony

Reply via email to