Skip to content

Commit

Permalink
Make email addresses private (#570)
Browse files Browse the repository at this point in the history
* Make email addresses private

* Update `haxelib user` tests with email change
  • Loading branch information
tobil4sk authored Oct 7, 2022
1 parent f7530a4 commit 0889874
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/haxelib/server/Repo.hx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Repo implements SiteApi {
return {
name : u.name,
fullname : u.fullname,
email : u.email,
email : "(private)",
projects : projects,
};
}
Expand Down
6 changes: 4 additions & 2 deletions test/tests/integration/TestUser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class TestUser extends IntegrationTests {

assertTrue(r.out.indexOf("Bar") >= 0);

assertTrue(r.out.indexOf(bar.email) >= 0);
assertTrue(r.out.indexOf(bar.email) == -1);
assertTrue(r.out.indexOf("(private)") >= 0);
assertTrue(r.out.indexOf(bar.fullname) >= 0);
assertTrue(r.out.indexOf(bar.pw) == -1);
}
Expand All @@ -29,7 +30,8 @@ class TestUser extends IntegrationTests {

assertTrue(r.out.indexOf("Bar") >= 0);

assertTrue(r.out.indexOf(bar.email) >= 0);
assertTrue(r.out.indexOf(bar.email) == -1);
assertTrue(r.out.indexOf("(private)") >= 0);
assertTrue(r.out.indexOf(bar.fullname) >= 0);
assertTrue(r.out.indexOf(bar.pw) == -1);

Expand Down

0 comments on commit 0889874

Please sign in to comment.