Skip to content

Commit

Permalink
Obfuscate new transform account route (#5260)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenriksson committed Jan 10, 2018
1 parent 8572e9f commit 8e4c30a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/NuGetGallery/App_Start/Routes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ public static void RegisterUIRoutes(RouteCollection routes)
routes.MapRoute(
RouteName.TransformToOrganizationConfirmation,
"account/transform/confirm/{accountNameToTransform}/{token}",
new { controller = "Users", action = "ConfirmTransform" });
new { controller = "Users", action = "ConfirmTransform" },
new RouteExtensions.ObfuscatedMetadata(3, Obfuscator.DefaultTelemetryUserName));

routes.MapRoute(
RouteName.ApiKeys,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void ValidatePIIRoutes()
foreach (var route in piiUrlRoutes)
{
var expectedTrue = RouteExtensions.ObfuscatedRouteMap.ContainsKey(route);
Assert.True(expectedTrue, $"Route was not added to the obfuscated routeMap.");
Assert.True(expectedTrue, $"Route {route} was not added to the obfuscated routeMap.");
}
}

Expand Down

0 comments on commit 8e4c30a

Please sign in to comment.