TASK22224: aggressive non-file parity bundle

This commit is contained in:
2026-03-23 18:32:49 +00:00
parent ba9beda65e
commit 411190e403
8 changed files with 249 additions and 116 deletions
+9 -1
View File
@@ -49,8 +49,16 @@ export default async function ApiProxy(req, res) {
const checkquerypath =
"/api/endpoint/getportallogin_api?emailAddress=" + emailAddress;
const encodedCheckquerypath =
"/api/endpoint/getportallogin_api?emailAddress=" +
encodeURIComponent(emailAddress);
if (hashAPIPath(checkquerypath) != "&hash=" + checkHash) {
const expectedHashCandidates = [
hashAPIPath(checkquerypath),
hashAPIPath(encodedCheckquerypath)
];
if (!expectedHashCandidates.includes("&hash=" + checkHash)) {
return respondError(res, {
status: 400,
code: "INVALID_HASH",