Actually it was a bug before and this fixed it. In your app you can
do:

auth.settings.controller = response.controller
auth.settings.controller = response.controller

Massimo

On Oct 28, 1:29 am, Russell <[email protected]> wrote:
> Hi,
>
> Upgrading to Version 1.68.2 broke the Auth in my applications.  The
> bug: when a user is visiting a controller other than 'default' and the
> the login cookie expires, the ?_next parameter incorrectly bounces
> them back to the 'default' controller.
>
> I've narrowed it down to the new auth.settings.controller, which has a
> default of 'default'.  This may be a reasonable assumption, but does
> not seem to be backwards compatible.
>
> The fix that works for me is to change these two lines in tools.py:
>
> 328: self.settings.controller = 'default'
> 1707: self.settings.controller = 'default'
>
> to this:
>
> 328: self.settings.controller = response.controller
> 1707: self.settings.controller = response.controller
>
> If you don't mind me asking, why was this added and where is it
> documented? :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to