From 0a1d59dd45f1bc67fa07c1a2782e7edcc963b1ec Mon Sep 17 00:00:00 2001 From: Sebastian Kinzlinger Date: Tue, 17 Nov 2020 11:02:28 +0200 Subject: [PATCH] Update auth.ts Pass custom `reset_url` to `requestPasswordReset`. --- api/src/controllers/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/controllers/auth.ts b/api/src/controllers/auth.ts index 94d86fd44c..89f253d3f1 100644 --- a/api/src/controllers/auth.ts +++ b/api/src/controllers/auth.ts @@ -175,9 +175,9 @@ router.post( }; const service = new UsersService({ accountability, schema: req.schema }); - + try { - await service.requestPasswordReset(req.body.email); + await service.requestPasswordReset(req.body.email, req.body.reset_url); } catch { // We don't want to give away what email addresses exist, so we'll always return a 200 // from this endpoint