added page titles and icon
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
// export default function ({ route, redirect }) {
|
||||
// // Check if user is not authenticated and trying to access a page other than /login
|
||||
// if (!isAuthenticated() && route.path !== '/login') {
|
||||
// return redirect('/login');
|
||||
// }
|
||||
// }
|
||||
export default function ({ route, redirect }) {
|
||||
// Check if user is not authenticated and trying to access a page other than /login
|
||||
if (!isAuthenticated() && route.path !== '/login') {
|
||||
return redirect('/login');
|
||||
}
|
||||
}
|
||||
|
||||
// function isAuthenticated() {
|
||||
// // Implement authentication logic
|
||||
// return false
|
||||
// // Return true if authenticated, false otherwise
|
||||
// }
|
||||
function isAuthenticated() {
|
||||
// Implement authentication logic
|
||||
return false
|
||||
// Return true if authenticated, false otherwise
|
||||
}
|
||||
Reference in New Issue
Block a user