fix: allow to switch login on another backend in case of failure

parent 55c2dfb6
......@@ -307,6 +307,11 @@ class UserHandler(BUIuser):
self.back = None
return self.login(passwd)
self.authenticated = self.real.login(passwd)
# allow to try another backend
if not self.authenticated:
self.real = None
self.back = None
return self.login(passwd)
session['authenticated'] = self.authenticated
session['language'] = self.language
session['login'] =
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment