Skip to content

Commit 9711d2c

Browse files
committed
DO NOT MERGE: disabling formsg signature check for load testing
1 parent 4657f22 commit 9711d2c

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
@@ -87,8 +87,10 @@ export async function decryptFormResponse(
8787
$.webhookUrl,
8888
)
8989
} catch (e) {
90-
logger.error('Unable to verify formsg signature')
91-
return { verified: false, internalId: null }
90+
if ($.flow.id !== '334e0e2a-c052-4450-90b0-8661d56efe41') {
91+
logger.error('Unable to verify formsg signature')
92+
return { verified: false, internalId: null }
93+
}
9294
}
9395

9496
const formSecretKey = $.auth.data.privateKey as string

0 commit comments

Comments
 (0)