diff --git a/apps/accounts/serializers/account/template.py b/apps/accounts/serializers/account/template.py index 5a0529b2d..3df2d5b74 100644 --- a/apps/accounts/serializers/account/template.py +++ b/apps/accounts/serializers/account/template.py @@ -10,7 +10,7 @@ from .base import BaseAccountSerializer class PasswordRulesSerializer(serializers.Serializer): - length = serializers.IntegerField(min_value=8, max_value=30, default=16, label=_('Password length')) + length = serializers.IntegerField(min_value=8, max_value=36, default=16, label=_('Password length')) lowercase = serializers.BooleanField(default=True, label=_('Lowercase')) uppercase = serializers.BooleanField(default=True, label=_('Uppercase')) digit = serializers.BooleanField(default=True, label=_('Digit')) diff --git a/apps/accounts/serializers/automations/change_secret.py b/apps/accounts/serializers/automations/change_secret.py index 34d4326b8..e9a653c13 100644 --- a/apps/accounts/serializers/automations/change_secret.py +++ b/apps/accounts/serializers/automations/change_secret.py @@ -84,7 +84,7 @@ class ChangeSecretAutomationSerializer(AuthValidateMixin, BaseAutomationSerializ msg = _("* Please enter the correct password length") raise serializers.ValidationError(msg) - if length < 6 or length > 30: + if length < 6 or length > 36: msg = _('* Password length range 6-30 bits') raise serializers.ValidationError(msg)