diff --git a/email/verify.html b/email/verify.html index e45cc8100b6a92bf43f3992039ecfacff020ce2c..63a7a9ba53876c3b8fa3bba6c31a62d52debd196 100644 --- a/email/verify.html +++ b/email/verify.html @@ -70,13 +70,10 @@ <tr> <td valign="top"> <h2 class="bodyHeader">Welcome aboard.</h2> - <p>You'll be notified of any development updates.</p> - <p>We just need to verify your email so that we can send you emails in the future.</p> + <p>You'll be notified of any development updates once we verify your email.</p> + <p>Thanks for signing up.</p> <br><br> <center><a class="button" href="https://revolt.chat/api/verify?id={{id}}">Verify email</a></center> - <br><br> - <p>Want to spread the word?</p> - <p>Your referral link is <a href="https://revolt.chat/?ref={{ref}}">https://revolt.chat/?ref={{ref}}</a></p> </td> </tr> </table> diff --git a/pages/api/verify.ts b/pages/api/verify.ts index c6fc6bb7fecb2491a6424fd9305cd3da645dda30..fab48bea814fccaad349cfd01a70826bc3699ab6 100644 --- a/pages/api/verify.ts +++ b/pages/api/verify.ts @@ -21,7 +21,7 @@ handler.get(async (req: NextApiRequest, res: NextApiResponse) => { if (result) { if (result.verified) { - res.send('Already verified! :)'); + res.writeHead(303, { Location: '/' }); return; } @@ -45,7 +45,7 @@ handler.get(async (req: NextApiRequest, res: NextApiResponse) => { ] }).then(() => {}).catch((err) => console.warn(err)); - res.send('Verified your email! Thanks :)'); + res.writeHead(303, { Location: '/' }); } else { res.send('Unknown ID. :('); }