mirror of https://gitlab.com/bashrc2/epicyon
Username might not be at the start
parent
84d57590b8
commit
1d77869706
|
@ -27,6 +27,7 @@ def html_get_login_credentials(login_params: str,
|
||||||
"""Receives login credentials via HTTPServer POST
|
"""Receives login credentials via HTTPServer POST
|
||||||
"""
|
"""
|
||||||
if not login_params.startswith('username='):
|
if not login_params.startswith('username='):
|
||||||
|
if '&username=' not in login_params:
|
||||||
return None, None, None
|
return None, None, None
|
||||||
# minimum time between login attempts
|
# minimum time between login attempts
|
||||||
curr_time = int(time.time())
|
curr_time = int(time.time())
|
||||||
|
|
Loading…
Reference in New Issue