Admin Login Page with Authentication #17

Closed
opened 2026-04-19 11:41:57 +00:00 by NW · 0 comments
Owner

Task

Create admin login page with proper authentication.

Requirements

  • Login page at /login.html
  • Email/password authentication
  • Session management with cookies
  • CSRF protection
  • Rate limiting on login attempts
  • Redirect to admin if authenticated

Files Changed

  • public/login.html - New login page
  • public/js/api.js - Auth API methods
  • public/admin.html - Auth check on page load
  • src/server/index.ts - CSRF endpoint, auth endpoints

Acceptance Criteria

  • Invalid credentials show error message
  • Valid credentials redirect to admin
  • Session persists for 7 days
  • Rate limiting prevents brute force

Migrated from UniqueSoft/APAW#28

## Task Create admin login page with proper authentication. ### Requirements - [x] Login page at /login.html - [x] Email/password authentication - [x] Session management with cookies - [x] CSRF protection - [x] Rate limiting on login attempts - [x] Redirect to admin if authenticated ### Files Changed - `public/login.html` - New login page - `public/js/api.js` - Auth API methods - `public/admin.html` - Auth check on page load - `src/server/index.ts` - CSRF endpoint, auth endpoints ### Acceptance Criteria - [ ] Invalid credentials show error message - [ ] Valid credentials redirect to admin - [ ] Session persists for 7 days - [ ] Rate limiting prevents brute force --- *Migrated from UniqueSoft/APAW#28*
NW added this to the Administrative Section Implementation milestone 2026-04-19 11:41:57 +00:00
NW closed this issue 2026-04-19 11:44:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UniqueSoft/TenerifeProp#17