diff --git a/src/components/create-password/create-password-controller.ts b/src/components/create-password/create-password-controller.ts index ad3b297685..b7c49b85db 100644 --- a/src/components/create-password/create-password-controller.ts +++ b/src/components/create-password/create-password-controller.ts @@ -23,7 +23,6 @@ export function createPasswordPost( res.locals.clientSessionId, req.session.user.email, req.body.password, - req.ip, res.locals.persistentSessionId, req ); diff --git a/src/components/create-password/create-password-service.ts b/src/components/create-password/create-password-service.ts index d63fae80ac..277952fa2c 100644 --- a/src/components/create-password/create-password-service.ts +++ b/src/components/create-password/create-password-service.ts @@ -17,7 +17,6 @@ export function createPasswordService( clientSessionId: string, emailAddress: string, password: string, - sourceIp: string, persistentSessionId: string, req: Request ): Promise> { @@ -31,7 +30,6 @@ export function createPasswordService( { sessionId: sessionId, clientSessionId: clientSessionId, - sourceIp: sourceIp, persistentSessionId: persistentSessionId, }, req, diff --git a/src/components/create-password/tests/create-password-service.test.ts b/src/components/create-password/tests/create-password-service.test.ts index 20373188d6..0a54b1af1b 100644 --- a/src/components/create-password/tests/create-password-service.test.ts +++ b/src/components/create-password/tests/create-password-service.test.ts @@ -44,7 +44,7 @@ describe("create password service", () => { const req = createMockRequest(PATH_NAMES.CREATE_ACCOUNT_SET_PASSWORD, { headers: requestHeadersWithIpAndAuditEncoded, }); - const { email, sessionId, clientSessionId, ip, diPersistentSessionId } = + const { email, sessionId, clientSessionId, diPersistentSessionId } = commonVariables; const password = "abcdef"; @@ -59,7 +59,6 @@ describe("create password service", () => { clientSessionId, email, password, - ip, diPersistentSessionId, req ); diff --git a/src/components/create-password/types.ts b/src/components/create-password/types.ts index f25431ecdb..2eaaad2e3e 100644 --- a/src/components/create-password/types.ts +++ b/src/components/create-password/types.ts @@ -7,7 +7,6 @@ export interface CreatePasswordServiceInterface { clientSessionId: string, emailAddress: string, password: string, - sourceIp: string, persistentSessionId: string, req: Request ) => Promise>;