First pass of training report form, lacks attendees
This commit is contained in:
@@ -46,13 +46,13 @@ router.beforeEach(async (to) => {
|
||||
await user.loadUser();
|
||||
}
|
||||
|
||||
// Not logged in
|
||||
if (to.meta.requiresAuth && !user.isLoggedIn) {
|
||||
// Redirect back to original page after login
|
||||
const redirectUrl = encodeURIComponent(window.location.origin + to.fullPath)
|
||||
window.location.href = `https://aj17thdevapi.nexuszone.net/login?redirect=${redirectUrl}`
|
||||
return false // Prevent Vue Router from continuing
|
||||
}
|
||||
// // Not logged in
|
||||
// if (to.meta.requiresAuth && !user.isLoggedIn) {
|
||||
// // Redirect back to original page after login
|
||||
// const redirectUrl = encodeURIComponent(window.location.origin + to.fullPath)
|
||||
// window.location.href = `https://aj17thdevapi.nexuszone.net/login?redirect=${redirectUrl}`
|
||||
// return false // Prevent Vue Router from continuing
|
||||
// }
|
||||
|
||||
|
||||
// // Must be a member
|
||||
|
||||
Reference in New Issue
Block a user