9 lines
329 B
JavaScript
9 lines
329 B
JavaScript
export default defineNuxtRouteMiddleware(() => {
|
|
const authStore = useAuthStore()
|
|
const runtimeConfig = useRuntimeConfig()
|
|
if (runtimeConfig.public?.selfHosted) {
|
|
if (authStore.check && authStore.user?.email === 'admin@opnform.com') {
|
|
return navigateTo({ name: "update-credentials" })
|
|
}
|
|
}
|
|
}) |