Separated laravel app to its own folder (#540)
This commit is contained in:
15
client/middleware/self-hosted-credentials.js
vendored
15
client/middleware/self-hosted-credentials.js
vendored
@@ -1,9 +1,10 @@
|
||||
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" })
|
||||
}
|
||||
const authStore = useAuthStore()
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
|
||||
if (runtimeConfig.public?.selfHosted) {
|
||||
if (authStore.check && authStore.user?.email === 'admin@opnform.com') {
|
||||
return navigateTo({ name: "update-credentials" })
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user