fix: stash tasks in readme
This commit is contained in:
@@ -95,7 +95,8 @@ Suddenly, your teammate reports a **critical security bug** in production! You n
|
|||||||
|
|
||||||
2. **Check your current status:**
|
2. **Check your current status:**
|
||||||
```pwsh
|
```pwsh
|
||||||
git status
|
git status # See which files are changed
|
||||||
|
git diff # See all the changes in a diffview
|
||||||
```
|
```
|
||||||
You should see modified `login.py` (uncommitted changes)
|
You should see modified `login.py` (uncommitted changes)
|
||||||
|
|
||||||
@@ -116,15 +117,12 @@ Suddenly, your teammate reports a **critical security bug** in production! You n
|
|||||||
```
|
```
|
||||||
|
|
||||||
6. **Open app.py and find the bug:**
|
6. **Open app.py and find the bug:**
|
||||||
```pwsh
|
|
||||||
cat app.py
|
|
||||||
```
|
|
||||||
Look for the comment "# BUG: This allows unauthenticated access!"
|
Look for the comment "# BUG: This allows unauthenticated access!"
|
||||||
|
|
||||||
7. **Fix the bug** by editing app.py:
|
7. **Fix the bug** by editing app.py:
|
||||||
- Remove the buggy comment line
|
- Remove the buggy comment line
|
||||||
- You can leave the implementation as-is or improve it
|
- You can leave the implementation as-is or improve it
|
||||||
- The important thing is removing the comment that says "allows unauthenticated access"
|
- The important thing is removing the comment that says "BUG: This allows unauthenticated access"
|
||||||
|
|
||||||
8. **Commit the fix:**
|
8. **Commit the fix:**
|
||||||
```pwsh
|
```pwsh
|
||||||
@@ -143,10 +141,8 @@ Suddenly, your teammate reports a **critical security bug** in production! You n
|
|||||||
```
|
```
|
||||||
This applies the stash and removes it from the stash stack
|
This applies the stash and removes it from the stash stack
|
||||||
|
|
||||||
11. **Complete the TODOs in login.py:**
|
11. **Remove all the TODOs in login.py:**
|
||||||
- Open login.py in your editor
|
- Open login.py in your editor
|
||||||
- Complete the login method (verify password and return session)
|
|
||||||
- Add a logout method
|
|
||||||
- Remove all TODO comments
|
- Remove all TODO comments
|
||||||
|
|
||||||
12. **Commit your completed feature:**
|
12. **Commit your completed feature:**
|
||||||
|
|||||||
Reference in New Issue
Block a user