In one of my model files I have the following setting:

auth.settings.login_next = URL('cms', 'default', 'my_login')

my_login() takes care of setting defaults depending on who logs in and then
redirect to cms/default/index

@auth.requires_login()
def my_login():
    if auth.has_membership(ROOT):
        admin_menu()
    else:
        ...
    redirect(URL('index'))

This worked well until Firefox updated to 26.0, now after submitting the 
login form
I get this message:

You are being redirected here

in which here is a link to cms/default/my_login
The current url is http://127.0.0.1:8000/cms/default/user/login


I have the following logout settings:

auth.settings.logout_onlogout = lambda user: on_logout(auth, session)
auth.settings.logout_next = URL('default', 'index')

which do work well.

I tested these functions in Safari, in Safari everything works as before.
Does anyone have an idea what changed in Firefox and how to solve this 
issue?


Kind regards,

Annet

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