perf: random password exclude some char

This commit is contained in:
ibuler
2025-07-16 19:31:06 +08:00
committed by 老广
parent 3af188492f
commit 44d77ba03f
2 changed files with 10 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class PasswordStrategy(models.TextChoices):
random_all = 'random_all', _('All assets use different random password')
string_punctuation = '!#$%&()*+,-.:;<=>?@[]^_~'
string_punctuation = '!#$%&()*+,-.:;<=?@[]_~'
DEFAULT_PASSWORD_LENGTH = 30
DEFAULT_PASSWORD_RULES = {
'length': DEFAULT_PASSWORD_LENGTH,