diff --git a/server/auth/email.js b/server/auth/email.js index 1f277d1d..defa9459 100644 --- a/server/auth/email.js +++ b/server/auth/email.js @@ -45,7 +45,11 @@ router.post("email", async (ctx) => { user.lastSigninEmailSentAt && user.lastSigninEmailSentAt > subMinutes(new Date(), 2) ) { - ctx.redirect(`${team.url}?notice=email-auth-ratelimit`); + ctx.body = { + redirect: `${team.url}?notice=email-auth-ratelimit`, + message: "Rate limit exceeded", + success: false, + }; return; }