hiddifypanel 9.0.0.dev44__py3-none-any.whl → 9.0.0.dev45__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hiddifypanel/VERSION +1 -1
- hiddifypanel/VERSION.py +1 -1
- hiddifypanel/models/utils.py +5 -5
- hiddifypanel/panel/user/templates/new.html +1 -1
- hiddifypanel/static/new/assets/{index-a180e42e.js → index-bd9ba5e9.js} +2 -2
- hiddifypanel/translations/en/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/en/LC_MESSAGES/messages.po +2 -2
- hiddifypanel/translations/fa/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/fa/LC_MESSAGES/messages.po +2 -2
- hiddifypanel/translations/pt/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/pt/LC_MESSAGES/messages.po +2 -2
- hiddifypanel/translations/ru/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/ru/LC_MESSAGES/messages.po +2 -2
- hiddifypanel/translations/zh/LC_MESSAGES/messages.mo +0 -0
- hiddifypanel/translations/zh/LC_MESSAGES/messages.po +2 -2
- {hiddifypanel-9.0.0.dev44.dist-info → hiddifypanel-9.0.0.dev45.dist-info}/METADATA +1 -1
- {hiddifypanel-9.0.0.dev44.dist-info → hiddifypanel-9.0.0.dev45.dist-info}/RECORD +21 -21
- {hiddifypanel-9.0.0.dev44.dist-info → hiddifypanel-9.0.0.dev45.dist-info}/LICENSE.md +0 -0
- {hiddifypanel-9.0.0.dev44.dist-info → hiddifypanel-9.0.0.dev45.dist-info}/WHEEL +0 -0
- {hiddifypanel-9.0.0.dev44.dist-info → hiddifypanel-9.0.0.dev45.dist-info}/entry_points.txt +0 -0
- {hiddifypanel-9.0.0.dev44.dist-info → hiddifypanel-9.0.0.dev45.dist-info}/top_level.txt +0 -0
hiddifypanel/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
9.0.0.
|
1
|
+
9.0.0.dev45
|
hiddifypanel/VERSION.py
CHANGED
hiddifypanel/models/utils.py
CHANGED
@@ -5,11 +5,11 @@ from slugify import slugify
|
|
5
5
|
def fill_username(model) -> None:
|
6
6
|
if model.username:
|
7
7
|
return
|
8
|
-
|
8
|
+
base_username = model.name or ''
|
9
9
|
minimum_username_length = 10
|
10
10
|
|
11
|
-
if len(
|
12
|
-
base_username += hutils.utils.get_random_string(minimum_username_length-len(
|
11
|
+
if len(base_username) < minimum_username_length:
|
12
|
+
base_username += hutils.utils.get_random_string(minimum_username_length-len(base_username), minimum_username_length)
|
13
13
|
|
14
14
|
if len(base_username) > 100:
|
15
15
|
base_username = base_username[0:100]
|
@@ -17,10 +17,10 @@ def fill_username(model) -> None:
|
|
17
17
|
|
18
18
|
while not model.is_username_unique():
|
19
19
|
rand_str = hutils.utils.get_random_string(2, 4)
|
20
|
-
model.username
|
20
|
+
model.username += rand_str
|
21
21
|
|
22
22
|
|
23
23
|
def fill_password(model) -> None:
|
24
24
|
# TODO: hash the password
|
25
25
|
if not model.password or len(model.password) < 16:
|
26
|
-
model.password
|
26
|
+
model.password=hutils.utils.get_random_password(length = 16)
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
12
12
|
|
13
13
|
<title>Hiddify | Panel</title>
|
14
|
-
<script type="module" crossorigin src="../static/new/assets/index-
|
14
|
+
<script type="module" crossorigin src="../static/new/assets/index-bd9ba5e9.js"></script>
|
15
15
|
<link rel="stylesheet" href="../static/new/assets/index-d9bbf489.css">
|
16
16
|
</head>
|
17
17
|
<body>
|