Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Feb 7, 2024
1 parent 996e28c commit 2740f78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ public String viewcart(Model model, @RequestParam Map<String, String> params, Ht
logger.info("jsession: " + this.sessionUser.getJSessionId());
logger.info("csrf: " + this.sessionUser.getCsrfToken());
logger.info("incoming arrAffinity: " + params.get("arrAffinity"));

if(params.get("csrf") == null || !params.get("csrf").equals(this.sessionUser.getCsrfToken()))
{
return "Invalid CSRF token";
}

this.sessionUser.getTelemetryClient().trackEvent(
String.format("PetStoreApp user %s requesting view cart", this.sessionUser.getName()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if(e.target.innerHTML.includes('sm-'))
{
e.preventDefault();
window.location.href = "https://azurepetstore.com/soulmachines";
window.location.href = "/soulmachines";
}
});
</script>
Expand Down

0 comments on commit 2740f78

Please sign in to comment.