Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

Commit bc58619

Browse files
committed
remove useless input verifications (Wordpress accepts usernames and passwords from one character)
1 parent 707e0d7 commit bc58619

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

wp-backup-data.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ def check_address(address):
1616
def check_username(username):
1717
if not username or username.strip() == "":
1818
raise ValueError('username required')
19-
elif len(username) < 4 or len(username) > 60:
20-
raise ValueError("username too short or too long")
2119

2220
def check_password(password):
2321
if not password or password.strip() == "":
2422
raise ValueError('password required')
25-
elif len(password) < 4:
26-
raise ValueError("password too short")
2723

2824
def check_field(checker, data):
2925
try:

0 commit comments

Comments
 (0)