Implement logging in

This commit is contained in:
Nettika 2026-01-25 16:02:13 -08:00
parent 3ce2fb04eb
commit a00671115e
No known key found for this signature in database
2 changed files with 40 additions and 5 deletions

View file

@ -13,7 +13,7 @@
[x] Add .env file support using the dotenv crate. Load environment variables on server startup.
[x] Create a `GET /login` endpoint that returns a simple HTML login form (username and password fields).
[x] Add a rouille::session manager to set a session cookie.
[ ] Create a `POST /login` endpoint that validates credentials against USERNAME and PASSWORD environment variables.
[x] Create a `POST /login` endpoint that validates credentials against USERNAME and PASSWORD environment variables.
[ ] Protect write endpoints (POST /projects, and any future write operations) with authentication. Redirect to /login if not authenticated.
[ ] Add a login button to the front page (GET /projects) that links to /login.
[ ] When logged in, show a "Create Project" button on the front page that links to /new-project.