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

Co-authored-by: feng <1304903146@qq.com>
pull/12379/head^2
fit2bot 2023-12-20 11:05:42 +08:00 committed by GitHub
parent ef1875d9b5
commit e18e019460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class SecretGenerator:
'upper': rules['uppercase'], 'upper': rules['uppercase'],
'digit': rules['digit'], 'digit': rules['digit'],
'special_char': rules['symbol'], 'special_char': rules['symbol'],
'exclude_chars': rules['exclude_symbols'] 'exclude_chars': rules.get('exclude_symbols', ''),
} }
return random_string(**rules) return random_string(**rules)