Re: [web2py] changing default redirect after failed login attempt.

2011-11-10 Thread Bruno Rocha
forget about it, it needs to be a lambda because of: return call_or_redirect( self.settings.on_failed_authentication, self.settings.login_url+\ '?_next='+urllib.quote(next)) it says that should be

Re: [web2py] changing default redirect after failed login attempt.

2011-11-10 Thread Bruno Rocha
In Auth class we have: settings.on_failed_authentication = lambda x: redirect(x) so try auth.settings.on_failed_authentication = redirect(URL(.)) On Thu, Nov 10, 2011 at 6:45 AM, Chris Steel wrote: > Everything seems to work with the following set up except for when > signing on with an

[web2py] changing default redirect after failed login attempt.

2011-11-10 Thread Chris Steel
Everything seems to work with the following set up except for when signing on with an incorrect password in which case the user gets directed to "default/user/login" instead of "plugin_user_admin/user/login". Basically I have moved the user function into a different controller along with the corre