Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
2d94333
Merge pull request #2397 from opengovsg/release-1.80
dcshzj Jul 15, 2025
e603ff0
feat(otp): update OTP verification to include IP address
adriangohjw Jul 21, 2025
c71fc06
fix(otp): remove unused getRedisKey method from OtpRepository interface
adriangohjw Jul 21, 2025
03830ff
fix(test): remove unused getRedisKey mock from LoginController tests
adriangohjw Jul 21, 2025
6161aa4
test(otp): add OTP IP-based storage tests to prevent denial of servic…
adriangohjw Jul 21, 2025
bb8edc1
feat(redirect): enhance with more robust URL checker + extract isFrom…
adriangohjw Jul 21, 2025
567eb21
test(redirect): add comprehensive unit tests for RedirectService func…
adriangohjw Jul 21, 2025
29b40c8
test(redirect): update RedirectService tests to reflect direct redire…
adriangohjw Jul 22, 2025
bf3fb8b
test(redirect): update RedirectService test to use full staging URL f…
adriangohjw Jul 22, 2025
9206094
test(redirect): modify RedirectService test to use specific staging U…
adriangohjw Jul 22, 2025
36b91b0
test(redirect): rename test suite to 'redirectFor' for clarity in Red…
adriangohjw Jul 22, 2025
1684f26
test(redirect): refactor RedirectService test setup for improved clar…
adriangohjw Jul 22, 2025
c83ebf4
Merge pull request #2401 from opengovsg/adriangohjw/isom-2008-vapt-in…
adriangohjw Jul 23, 2025
8e052bd
Merge pull request #2400 from opengovsg/adriangohjw/isom-2003-vapt-ac…
adriangohjw Jul 23, 2025
41707a8
1.81.0
dcshzj Jul 31, 2025
b6a6d41
1.82.0
dcshzj Jul 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,23 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v1.82.0](https://github.com/opengovsg/GoGovSG/compare/v1.81.0...v1.82.0)

#### [v1.81.0](https://github.com/opengovsg/GoGovSG/compare/v1.80.0...v1.81.0)

> 24 July 2025

- isom-2003 feat(otp): update OTP verification to include IP address [`#2400`](https://github.com/opengovsg/GoGovSG/pull/2400)
- isom-2008 feat(redirect): enhance checks for bypassing transition page [`#2401`](https://github.com/opengovsg/GoGovSG/pull/2401)
- 1.80.0 [to develop] [`#2397`](https://github.com/opengovsg/GoGovSG/pull/2397)
- feat(otp): update OTP verification to include IP address [`e603ff0`](https://github.com/opengovsg/GoGovSG/commit/e603ff0b019db926f008540a459585d9d6f29651)
- test(otp): add OTP IP-based storage tests to prevent denial of service attacks [`6161aa4`](https://github.com/opengovsg/GoGovSG/commit/6161aa4d6d7e249e5abcd033ada3e8071d57f2fd)
- test(redirect): add comprehensive unit tests for RedirectService functionality [`567eb21`](https://github.com/opengovsg/GoGovSG/commit/567eb215d33fe908c204ef9602ad47424f81adf5)

#### [v1.80.0](https://github.com/opengovsg/GoGovSG/compare/v1.79.2...v1.80.0)

> 15 July 2025

- chore: escape raw html [`#2395`](https://github.com/opengovsg/GoGovSG/pull/2395)
- chore: fix compoute issue from tags [`#2396`](https://github.com/opengovsg/GoGovSG/pull/2396)
- Release 1.79.2 `develop` [`#2392`](https://github.com/opengovsg/GoGovSG/pull/2392)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GoGovSG",
"version": "1.80.0",
"version": "1.82.0",
"description": "Link shortener for Singapore government.",
"main": "src/server/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/server/modules/auth/LoginController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class LoginController {
const { email, otp }: VerifyOtpRequest = req.body

try {
const user = await this.authService.verifyOtp(email, otp)
const user = await this.authService.verifyOtp(email, otp, getIp(req))
req.session!.user = user
res.ok(jsonMessage('OTP hash verification ok.'))
dogstatsd.increment(OTP_VERIFY_SUCCESS, 1, 1)
Expand Down
Loading
Loading