mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-13 08:58:35 +03:00
Small string fixes
This commit is contained in:
parent
56d7619e9f
commit
2541642160
@ -96,16 +96,12 @@ class TOTP_MFA(mfas.MFA):
|
||||
tab=_('Config'),
|
||||
)
|
||||
|
||||
doNotAskForOTP = gui.ChoiceField(
|
||||
label=_('Requre HOTP for users within networks'),
|
||||
doNotAskForOTP = gui.CheckBoxField(
|
||||
label=_('Require TOTP for users within networks'),
|
||||
order=33,
|
||||
defaultValue='0',
|
||||
tooltip=_('Action for user without defined Radius Challenge'),
|
||||
required=True,
|
||||
values={
|
||||
'0': _('Allow user login (no MFA)'),
|
||||
'1': _('Require user to login with MFA'),
|
||||
},
|
||||
tooltip=_('If checked, users within networks will not be asked for TOTP'),
|
||||
defvalue=gui.FALSE,
|
||||
required=False,
|
||||
tab=_('Config'),
|
||||
)
|
||||
|
||||
@ -141,7 +137,7 @@ class TOTP_MFA(mfas.MFA):
|
||||
for i in models.Network.objects.filter(uuid__in=self.networks.value)
|
||||
)
|
||||
|
||||
if self.doNotAskForOTP.value == '0':
|
||||
if self.doNotAskForOTP.isTrue():
|
||||
return not checkIp()
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user