Skip to content

Commit

Permalink
rename verifyEMail
Browse files Browse the repository at this point in the history
  • Loading branch information
adic2023 committed Oct 8, 2023
1 parent cf0766c commit a3ca740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}),
);
Expand Down

0 comments on commit a3ca740

Please sign in to comment.