TASK22224: aggressive non-file parity bundle
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user