Auth protect endpoints
This commit is contained in:
parent
a00671115e
commit
dc167fd8a0
2 changed files with 22 additions and 3 deletions
2
TODO.md
2
TODO.md
|
|
@ -14,7 +14,7 @@
|
|||
[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.
|
||||
[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.
|
||||
[x] 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.
|
||||
[ ] When logged in, add an edit icon to each project-card web component. Clicking the icon opens a dialog with a form to update the progress percentage and archive/unarchive the project.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue