forked from shaba/openuds
Fixed "disabled" tag to allow login with only federated auths
This commit is contained in:
parent
d0b30b561c
commit
de40c72d9e
@ -115,7 +115,7 @@ def udsJs(request: 'ExtendedHttpRequest') -> str:
|
|||||||
or (tag == 'disabled' and x.getType().isCustom() is False)
|
or (tag == 'disabled' and x.getType().isCustom() is False)
|
||||||
]
|
]
|
||||||
|
|
||||||
if not authenticators:
|
if not authenticators and tag != 'disabled':
|
||||||
try:
|
try:
|
||||||
authenticators = [Authenticator.objects.order_by('priority')[0]]
|
authenticators = [Authenticator.objects.order_by('priority')[0]]
|
||||||
except Exception: # There is no authenticators yet...
|
except Exception: # There is no authenticators yet...
|
||||||
|
Loading…
Reference in New Issue
Block a user