mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-14 12:14:33 +01:00
Working
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export default defineNuxtRouteMiddleware(async () => {
|
||||
const { loggedIn } = useUserSession()
|
||||
const { loggedIn, user } = await useUserSession()
|
||||
|
||||
if (loggedIn.value) {
|
||||
return navigateTo('/')
|
||||
return navigateTo(`/${user.value.username.toLowerCase()}`)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user