diff --git a/src/haxelib/server/Repo.hx b/src/haxelib/server/Repo.hx index 75c481798..cdbd144f2 100644 --- a/src/haxelib/server/Repo.hx +++ b/src/haxelib/server/Repo.hx @@ -105,7 +105,7 @@ class Repo implements SiteApi { return { name : u.name, fullname : u.fullname, - email : u.email, + email : "(private)", projects : projects, }; } diff --git a/test/tests/integration/TestUser.hx b/test/tests/integration/TestUser.hx index 87812e2a4..c7903dd2e 100644 --- a/test/tests/integration/TestUser.hx +++ b/test/tests/integration/TestUser.hx @@ -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); } @@ -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);