feat: implement custom login system with direct authentication
All checks were successful
Build And Push Image / docker (push) Successful in 2m51s
All checks were successful
Build And Push Image / docker (push) Successful in 2m51s
- Add custom login page with username/password form and SSO fallback - Implement direct login API endpoint with security features - Add forgot password functionality and email notifications - Create guest middleware for authentication routing - Update Keycloak configuration and add cookie domain settings - Add security utilities for rate limiting and validation - Include comprehensive documentation for custom login implementation
This commit is contained in:
8
middleware/guest.ts
Normal file
8
middleware/guest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export default defineNuxtRouteMiddleware((to, from) => {
|
||||
const { user } = useAuth();
|
||||
|
||||
// If user is already authenticated, redirect to dashboard
|
||||
if (user.value) {
|
||||
return navigateTo('/dashboard');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user