Remove encoding

This commit is contained in:
amcmanu3 2024-02-20 17:32:34 -05:00
parent fcb8b02907
commit 647e3b1111
2 changed files with 2 additions and 4 deletions

View File

@ -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,

View File

@ -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();