mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-28 08:06:27 +00:00
perf: string_punctuation remove > ^
This commit is contained in:
@@ -6,7 +6,7 @@ import socket
|
||||
import string
|
||||
import struct
|
||||
|
||||
string_punctuation = '!#$%&()*+,-.:;<=>?@[]^_~'
|
||||
string_punctuation = '!#$%&()*+,-.:;<=?@[]_~'
|
||||
|
||||
|
||||
def random_datetime(date_start, date_end):
|
||||
|
@@ -1,6 +1,8 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _, pgettext_lazy
|
||||
|
||||
from common.utils import string_punctuation
|
||||
|
||||
|
||||
class StrategyChoice(models.TextChoices):
|
||||
push = 'push', _('Push')
|
||||
@@ -21,7 +23,6 @@ class PasswordStrategy(models.TextChoices):
|
||||
random_all = 'random_all', _('All assets use different random password')
|
||||
|
||||
|
||||
string_punctuation = '!#$%&()*+,-.:;<=?@[]_~'
|
||||
DEFAULT_PASSWORD_LENGTH = 30
|
||||
DEFAULT_PASSWORD_RULES = {
|
||||
'length': DEFAULT_PASSWORD_LENGTH,
|
||||
|
Reference in New Issue
Block a user