Implement logging in
This commit is contained in:
parent
3ce2fb04eb
commit
a00671115e
2 changed files with 40 additions and 5 deletions
2
TODO.md
2
TODO.md
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue