Skip to content

Commit 1705a5e

Browse files
authored
Merge pull request #50 from italia/fix/resend-missing-code-type
fix(auth): /resend mancava il secondo arg type di createCode
2 parents 9205701 + 54cdca3 commit 1705a5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/server/routes/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ router.post("/resend",
348348
// Re-send only if the account exists AND is still unverified.
349349
// Already-verified accounts must use /recover for password resets.
350350
if (user && !user.verified) {
351-
const pin = await db.createCode(user.id);
351+
const pin = await db.createCode(user.id, "ACTIVATION");
352352
await sendActivationEmail(user, pin);
353353
}
354354
// Always return success to prevent email enumeration

0 commit comments

Comments
 (0)