Minor cleanup of comments, typing and gitignore
This commit is contained in:
1 parent
28c0f8b75e
commit
7dc474286f
4 files changed
+11
-8
No files matched your search
@@ -474,10 +474,10 @@ class LoginForm:
|
||||
self._pass_entry.get(),
|
||||
self._token_entry.get().strip(),
|
||||
)
|
||||
# basic input data validation
|
||||
# basic input data validation: 3-25 characters in length, only ascii and underscores
|
||||
if (
|
||||
not 3 <= len(login_data.username) <= 25 # 3-25 characters in length
|
||||
and re.match(r'^[a-zA-Z0-9_]+$', login_data.username) # only ascii and underscores
|
||||
not 3 <= len(login_data.username) <= 25
|
||||
and re.match(r'^[a-zA-Z0-9_]+$', login_data.username)
|
||||
):
|
||||
self.clear(login=True)
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user