From e18e019460a9f983c59ce6dcd783cb4cac343b3c Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 20 Dec 2023 11:05:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B4=A6=E5=8F=B7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=B4=A6=E5=8F=B7=E6=A8=A1=E7=89=88?= =?UTF-8?q?=20500=20(#12375)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/accounts/utils.py b/apps/accounts/utils.py index 730db4a6c..e56469c7e 100644 --- a/apps/accounts/utils.py +++ b/apps/accounts/utils.py @@ -31,7 +31,7 @@ class SecretGenerator: 'upper': rules['uppercase'], 'digit': rules['digit'], 'special_char': rules['symbol'], - 'exclude_chars': rules['exclude_symbols'] + 'exclude_chars': rules.get('exclude_symbols', ''), } return random_string(**rules)