Fixed "disabled" tag to allow login with only federated auths

This commit is contained in:
Adolfo Gómez García 2021-08-24 17:02:36 +02:00
parent d0b30b561c
commit de40c72d9e

View File

@ -115,7 +115,7 @@ def udsJs(request: 'ExtendedHttpRequest') -> str:
or (tag == 'disabled' and x.getType().isCustom() is False)
]
if not authenticators:
if not authenticators and tag != 'disabled':
try:
authenticators = [Authenticator.objects.order_by('priority')[0]]
except Exception: # There is no authenticators yet...