Or without c and f:

auth.settings.login_next = URL('default', 'index')

On Tuesday, 24 September 2013 13:29:27 UTC-5, Richard wrote:
>
> You can use this in model :
> auth.settings.login_next = URL(c='default', f='index')
>
> Richard
>
>
> On Tue, Sep 24, 2013 at 2:09 PM, raferbop <rafe...@gmail.com <javascript:>
> > wrote:
>
>> def index():
>>    return dict(logform=auth.login(),regform=auth.register())
>>
>> I put these two forms from the Auth module on the index page, inside a 
>> modal but when I login/register I am redirected to a profile page instead 
>> of the index page. What can I do to prevent the redirect or go the index 
>> page?
>>  
>> -- 
>> 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 web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to