Commit 7469bfc3 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Vincent A

[TwoFaBrowser] correction for multiple login after 2fa

parent 22fba1da
......@@ -1251,7 +1251,11 @@ class TwoFactorBrowser(LoginBrowser, StatesMixin):
self.twofa_logged_date = None
for config_key, handle_method in self.AUTHENTICATION_METHODS.items():
setattr(self, config_key, self.config.get(config_key, Value()).get())
config_value = self.config.get(config_key, Value())
if not config_value:
setattr(self, config_key, config_value.get())
if getattr(self, config_key):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment