mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-16 11:09:13 +00:00
require password for sensitive read endpoints
This commit is contained in:
@@ -78,6 +78,7 @@ def test_get_entry_by_id(client):
|
||||
headers = {
|
||||
"Authorization": f"Bearer {token}",
|
||||
"Origin": "http://example.com",
|
||||
"X-SeedPass-Password": "pw",
|
||||
}
|
||||
res = cl.get("/api/v1/entry/1", headers=headers)
|
||||
assert res.status_code == 200
|
||||
|
Reference in New Issue
Block a user