Skip to content

Commit

Permalink
Redact postcode in JSON serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
martyn-w committed Sep 30, 2024
1 parent 9c50292 commit cee4e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions GetIntoTeachingApi/Utils/Redactor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static class Redactor
"addressLine1",
"addressLine2",
"addressLine3",
"addressPostcode",
};

public static string RedactJson(string json)
Expand Down
2 changes: 1 addition & 1 deletion GetIntoTeachingApiTests/Utils/RedactorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void RedactJson_WithValidJson_RedactsSensitiveData()
password = "******",
},
email = "******",
addressPostcode = "TE7 1NG",
addressPostcode = "******",
}
);

Expand Down

0 comments on commit cee4e4e

Please sign in to comment.