Skip to content

Commit f9bb9b4

Browse files
authored
Update main_window.py
1 parent 0808e28 commit f9bb9b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ def check_password(pswdEntry):
11451145
(len(password) < 12, "The password is too short. It should has at least 12 characters"),
11461146
(not re.search(r'[A-Z]', password), "The password should has at least one capital letter"),
11471147
(not re.search(r'[a-z]', password), "The password should has at least one lowercase letter"),
1148-
(not re.search(r'[!@#%+=$&ĐłŁ_-§|]', password), "The password should has at least one special character"),
1148+
(not re.search(r'[-_@.:,+=]', password), "The password should has at least one special character"),
11491149
(" " in password, "The password must not contain spaces")
11501150
]
11511151

@@ -1159,7 +1159,7 @@ def check_password(pswdEntry):
11591159

11601160
# Generate Password
11611161
def pswd_generator(w):
1162-
safe = "!@#%+=$&ĐłŁ_-§|"
1162+
safe = "-_@.:,+="
11631163
allc = safe + string.ascii_letters + string.digits
11641164
password = [random.choice(safe), random.choice(string.ascii_letters), random.choice(string.digits)] + \
11651165
[random.choice(allc) for _ in range(21)]

0 commit comments

Comments
 (0)