We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d716359 commit bc780e6Copy full SHA for bc780e6
analyzer.py
@@ -6,8 +6,12 @@ def check_passwords(password_of_user):
6
reader = csv.reader(file)
7
# Flatten the list: csv.reader returns list of rows, we only have one row
8
passwords = [p.strip() for p in next(reader) if p.strip()]
9
+
10
+ #checking for any digit and symbol in password
11
has_digit = any(c.isdigit() for c in password_of_user)
12
has_symbol = any(not c.isalnum() for c in password_of_user)
13
14
+ #getting length of the password
15
length_of_password = len(password_of_user)
16
# Check length first
17
if length_of_password < 8:
0 commit comments