Complete mock secure web application with:
- User registration and login with CSRF protection - SQL injection prevention and XSS protection - Real-time form validation - Password strength requirements - Show/hide password toggle - Modern dark theme UI - Routes for /login, /register, /home, /logout - API endpoints for CRUD operations - Prettier and ESLint configure
This commit is contained in:
3
public/js/app.js
Normal file
3
public/js/app.js
Normal file
@@ -0,0 +1,3 @@
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
await api.getCSRFToken();
|
||||
});
|
||||
Reference in New Issue
Block a user