mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 13:24:27 +00:00
feat: implement public API routes and staff authentication
- Add public API endpoints for locations, services, and availability - Implement staff login system with password authentication - Update auth context to support password sign-in - Protect aperture dashboard with authentication - Update project documentation with new domains
This commit is contained in:
@@ -44,6 +44,12 @@ export default function ApertureDashboard() {
|
||||
)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (!user) {
|
||||
router.push('/aperture/login')
|
||||
}
|
||||
}, [user, router])
|
||||
|
||||
if (!user) {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user