Take the session secret out of the repository, and the name out of the page #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
azer/web-programming-basics!1
Loading…
Reference in a new issue
No description provided.
Delete branch "azer/auth-lesson-hygiene"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The auth lesson shipped its own .env with a real SESSION_SECRET, so the first thing a student cloning it sees is the secret living in the tree. Untracked, .env added to .gitignore, .env.example names the two values, and PORT gets a default so the lesson still runs with no file at all. Two smaller things the same lesson taught by accident: /profile put the submitted username straight into HTML (signing in as an img tag with onerror was enough to run it), and the session stored the password it had already checked. Built and run without a .env: comes up on 3000, name renders escaped.