Redirect regular members to coming-soon page after magic link login
Instead of sending members directly to the wiki (where they hit Outline's login page and have to click again), land them on the coming-soon page which shows a welcome message and wiki link.
This commit is contained in:
parent
2705d171bd
commit
c785a23910
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ export default defineEventHandler(async (event) => {
|
|||
maxAge: 60 * 60 * 24 * 7 // 7 days
|
||||
})
|
||||
|
||||
// Admins go to admin dashboard, everyone else goes to the wiki
|
||||
const redirectUrl = member.role === 'admin' ? '/admin' : 'https://wiki.ghostguild.org'
|
||||
// Admins go to admin dashboard, everyone else goes to coming-soon (with wiki link)
|
||||
const redirectUrl = member.role === 'admin' ? '/admin' : '/coming-soon'
|
||||
await sendRedirect(event, redirectUrl, 302)
|
||||
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue