Fix redirect url when login failed (invalid login)
Hello,
This is broken since 1457e12f70 . 'self.url' does'nt have any get_vars,post_vars, only one parameter called vars. I suggest to pass all variables instead with request.vars that will encompass both get and post vars... Another possibility would be to change the self.url signature but I don't see the purpose of making the distinction between post and get vars in this case.
This commit is contained in:
+1
-3
@@ -2640,9 +2640,7 @@ class Auth(AuthAPI):
|
||||
callback(onfail, None)
|
||||
if 'password' in request.post_vars:
|
||||
del request.post_vars['password']
|
||||
redirect(
|
||||
self.url(args=request.args, get_vars=request.get_vars, post_vars=request.post_vars),
|
||||
client_side=settings.client_side)
|
||||
redirect(self.url(args=request.args, vars=request.vars),client_side=settings.client_side)
|
||||
|
||||
else: # use a central authentication server
|
||||
cas = settings.login_form
|
||||
|
||||
Reference in New Issue
Block a user