From a3ca740fa2d7e2cc4971aab86f0578aec2e0592d Mon Sep 17 00:00:00 2001 From: adic2023 Date: Sun, 8 Oct 2023 15:00:57 -0400 Subject: [PATCH] rename verifyEMail --- src/routes/account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/account.ts b/src/routes/account.ts index 481ec28..84e58d2 100644 --- a/src/routes/account.ts +++ b/src/routes/account.ts @@ -109,14 +109,14 @@ router.get( } // I have no idea why joiful throws a fit here but this is the necessary workaround - const verifyRequest = await controller.verifyPasswordReset( + const verifyEmail = await controller.verifyPasswordReset( value as unknown as controller.ResetCredentials, ); return res.render('verify email', { id: value.id, key: value.key, - username: verifyRequest.user, + username: verifyEmail.user, }); }), );