mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix code quality issues
This commit is contained in:
parent
62b55792e5
commit
4df7858da6
@ -1,7 +1,4 @@
|
||||
import logging
|
||||
import binascii
|
||||
import base64
|
||||
import urllib
|
||||
import json
|
||||
import nh3
|
||||
from jsonschema import validate
|
||||
@ -237,7 +234,8 @@ class PublicHandler(BaseHandler):
|
||||
return self.finish_json(
|
||||
200, {"status": "ok", "data": {"message": "login successful!"}}
|
||||
)
|
||||
else:
|
||||
|
||||
# We'll continue on and handle unsuccessful logins
|
||||
auth_log.error(
|
||||
f"User attempted to log into {entered_username}."
|
||||
f" Authentication failed from remote IP {self.get_remote_ip()}"
|
||||
|
Loading…
Reference in New Issue
Block a user