You've already forked agentic-coding-workflow
feat(user): wire audit recorder into login/logout
This commit is contained in:
@@ -36,7 +36,7 @@ func TestHandler_LoginThenMeThenLogout(t *testing.T) {
|
||||
DisplayName: "T",
|
||||
PasswordHash: hash,
|
||||
}
|
||||
svc := NewService(repo)
|
||||
svc := NewService(repo, nil)
|
||||
srv := httptest.NewServer(mountHandler(svc))
|
||||
defer srv.Close()
|
||||
|
||||
@@ -90,7 +90,7 @@ func TestHandler_LoginThenMeThenLogout(t *testing.T) {
|
||||
// JSON object lacks both email and password and must be rejected with 400
|
||||
// before the service layer is consulted.
|
||||
func TestHandler_LoginInvalidPayload(t *testing.T) {
|
||||
svc := NewService(newFakeRepo())
|
||||
svc := NewService(newFakeRepo(), nil)
|
||||
srv := httptest.NewServer(mountHandler(svc))
|
||||
defer srv.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user