mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove encoding
This commit is contained in:
parent
fcb8b02907
commit
647e3b1111
@ -147,9 +147,7 @@ class PublicHandler(BaseHandler):
|
|||||||
)
|
)
|
||||||
entered_username = nh3.clean(data["username"]) # pylint: disable=no-member
|
entered_username = nh3.clean(data["username"]) # pylint: disable=no-member
|
||||||
try:
|
try:
|
||||||
entered_password = urllib.parse.unquote(
|
entered_password = data["password"]
|
||||||
base64.b64decode(data["password"]).decode("utf-8")
|
|
||||||
)
|
|
||||||
except binascii.Error:
|
except binascii.Error:
|
||||||
return self.finish_json(
|
return self.finish_json(
|
||||||
403,
|
403,
|
||||||
|
@ -181,7 +181,7 @@
|
|||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
"username": formDataObject.username,
|
"username": formDataObject.username,
|
||||||
"password": btoa(encodeURIComponent(formDataObject.password))
|
"password": formDataObject.password
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
let responseData = await res.json();
|
let responseData = await res.json();
|
||||||
|
Loading…
Reference in New Issue
Block a user