From 939b517e3483dc226f905752dfb14d5e46a67ba0 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 19 Oct 2023 17:28:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=94=B9=E5=AF=86=E5=AF=86=E7=A0=81=E8=A7=84=E5=88=99=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/accounts/serializers/automations/change_secret.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/accounts/serializers/automations/change_secret.py b/apps/accounts/serializers/automations/change_secret.py index cd7419fdc..23effe738 100644 --- a/apps/accounts/serializers/automations/change_secret.py +++ b/apps/accounts/serializers/automations/change_secret.py @@ -71,7 +71,6 @@ class ChangeSecretAutomationSerializer(AuthValidateMixin, BaseAutomationSerializ return password_rules length = password_rules.get('length') - symbol_set = password_rules.get('symbol_set', '') try: length = int(length) @@ -84,10 +83,6 @@ class ChangeSecretAutomationSerializer(AuthValidateMixin, BaseAutomationSerializ msg = _('* Password length range 6-30 bits') raise serializers.ValidationError(msg) - if not isinstance(symbol_set, str): - symbol_set = str(symbol_set) - - password_rules = {'length': length, 'symbol_set': ''.join(symbol_set)} return password_rules def validate(self, attrs):