Hello! I was recently debugging an issue with my login forms - on a failed login, I redirect to a nonexistent page.
Let's say I'm on /init/controller1/method1 and insert an auth.login() form. On a failed login, we redirect to the request page: redirect( self.url(args=request.args, vars=request.get_vars), client_side=settings.client_side) https://github.com/web2py/web2py/blob/master/gluon/tools.py#L2512 I had assumed this method would bounce you back to the page you made the failed login attempt on. However, instead of using the current controller, it uses auth.settings.controller: def url(self, f=None, args=None, vars=None, scheme=False): if args is None: args = [] if vars is None: vars = {} return URL(c=self.settings.controller, f=f, args=args, vars=vars, scheme=scheme) https://github.com/web2py/web2py/blob/master/gluon/tools.py#L1250 Is there any particular reason that we jump to a specific controller, no matter what controller auth.login is on? I changed auth.settings.controller to None and it seems to work great, but I was wondering if we could remove this setting. Thanks! -- 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.

