Send invite emails as HTML with clickable button, redirect login to wiki

Invite emails now include both plain text and HTML versions. The
{loginLink} placeholder renders as a styled button in HTML email
clients. Other URLs in the template are auto-linked. The auth verify
endpoint redirects to wiki.ghostguild.org instead of /members.
This commit is contained in:
Jennie Robinson Faber 2026-03-19 10:41:21 +00:00
parent ea6c4d8329
commit 27c07cd3e9
2 changed files with 90 additions and 2 deletions

View file

@ -52,8 +52,8 @@ export default defineEventHandler(async (event) => {
maxAge: 60 * 60 * 24 * 7 // 7 days
})
// Redirect to the members dashboard or home page
await sendRedirect(event, '/members', 302)
// Redirect to the wiki
await sendRedirect(event, 'https://wiki.ghostguild.org', 302)
} catch (err) {
if (err.statusCode && err.statusCode !== 401) {