Browse Source

fix: 账号列表,添加账号模版 500 (#12375)

Co-authored-by: feng <1304903146@qq.com>
pull/12379/head^2
fit2bot 11 months ago committed by GitHub
parent
commit
e18e019460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/accounts/utils.py

2
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)

Loading…
Cancel
Save