Skip to content

Commit 08cb817

Browse files
authored
Release v1.50.4 (#1172)
Fix - map sgidUinFin to uinFin
2 parents 8246d3d + cc603d7 commit 08cb817

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@
109109
"tsconfig-paths": "^4.2.0",
110110
"type-fest": "4.10.3"
111111
},
112-
"version": "1.50.3"
112+
"version": "1.50.4"
113113
}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ export async function decryptFormResponse(
188188
}
189189
}
190190

191-
verifiedSubmitterInfo[key] = value
192191
// for backwards compatibility with old forms that were created with sgID authType
193-
if (key === 'uinFin') {
192+
if (key === 'uinFin' || key === 'sgidUinFin') {
193+
verifiedSubmitterInfo['uinFin'] = value
194194
verifiedSubmitterInfo['sgidUinFin'] = value
195+
} else {
196+
verifiedSubmitterInfo[key] = value
195197
}
196198
}
197199
}

packages/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frontend",
3-
"version": "1.50.3",
3+
"version": "1.50.4",
44
"type": "module",
55
"scripts": {
66
"dev": "wait-on tcp:3000 && vite --host --force",

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"name": "@plumber/types",
33
"description": "Shared types for plumber",
44
"types": "./index.d.ts",
5-
"version": "1.50.3"
5+
"version": "1.50.4"
66
}

0 commit comments

Comments
 (0)