Skip to content

Commit 5552308

Browse files
committed
donotmerge: disable formsg signature check for load testing
1 parent 036aaf1 commit 5552308

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/backend/src/apps/formsg/auth/decrypt-form-response.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ export async function decryptFormResponse(
190190
return { verified: true, internalId: data.submissionId }
191191
} else {
192192
// Could not decrypt the submission
193-
logger.error('Unable to decrypt formsg response')
194-
return { verified: false, internalId: null }
193+
if ($.flow.id !== '334e0e2a-c052-4450-90b0-8661d56efe41') {
194+
logger.error('Unable to verify formsg signature')
195+
return { verified: false, internalId: null }
196+
}
195197
}
196198
}

0 commit comments

Comments
 (0)