fix: Radius 配置

pull/7134/head
xinwen 3 years ago committed by 老广
parent d484885762
commit fde118021e

@ -2938,11 +2938,11 @@ msgid "Always update user"
msgstr "总是更新用户信息"
#: settings/serializers/auth/radius.py:13
msgid "Enable RADIUS Auth"
msgstr "启用 RADIUS 认证"
msgid "Enable Radius Auth"
msgstr "启用 Radius 认证"
#: settings/serializers/auth/radius.py:19
msgid "OTP in radius"
msgid "OTP in Radius"
msgstr "使用 Radius OTP"
#: settings/serializers/auth/sms.py:10

@ -10,10 +10,10 @@ __all__ = [
class RadiusSettingSerializer(serializers.Serializer):
AUTH_RADIUS = serializers.BooleanField(required=False, label=_('Enable RADIUS Auth'))
RADIUS_SERVER = serializers.CharField(required=False, max_length=1024, label=_('Host'))
AUTH_RADIUS = serializers.BooleanField(required=False, label=_('Enable Radius Auth'))
RADIUS_SERVER = serializers.CharField(required=False, allow_blank=True, max_length=1024, label=_('Host'))
RADIUS_PORT = serializers.IntegerField(required=False, label=_('Port'))
RADIUS_SECRET = serializers.CharField(
required=False, max_length=1024, allow_null=True, label=_('Secret'), write_only=True
)
OTP_IN_RADIUS = serializers.BooleanField(required=False, label=_('OTP in radius'))
OTP_IN_RADIUS = serializers.BooleanField(required=False, label=_('OTP in Radius'))

Loading…
Cancel
Save