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

View File

@ -181,7 +181,7 @@
},
body: JSON.stringify({
"username": formDataObject.username,
"password": btoa(encodeURIComponent(formDataObject.password))
"password": formDataObject.password
}),
});
let responseData = await res.json();