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
|
||||
try:
|
||||
entered_password = urllib.parse.unquote(
|
||||
base64.b64decode(data["password"]).decode("utf-8")
|
||||
)
|
||||
entered_password = data["password"]
|
||||
except binascii.Error:
|
||||
return self.finish_json(
|
||||
403,
|
||||
|
@ -181,7 +181,7 @@
|
||||
},
|
||||
body: JSON.stringify({
|
||||
"username": formDataObject.username,
|
||||
"password": btoa(encodeURIComponent(formDataObject.password))
|
||||
"password": formDataObject.password
|
||||
}),
|
||||
});
|
||||
let responseData = await res.json();
|
||||
|
Loading…
Reference in New Issue
Block a user