Commit 87d0afa4 authored by unknown's avatar unknown
Browse files

SITE-6353 - Example application cannot be authorized

parent 6c83f490
Showing with 1 addition and 1 deletion
+1 -1
......@@ -455,7 +455,7 @@ public class FitbitApiClientController {
if (null == userId || userId.length() < 1) {
userId = String.valueOf(Math.abs(new Random(System.currentTimeMillis()).nextInt()));
Cookie uidCookie = new Cookie(APP_USER_COOKIE_NAME, userId);
uidCookie.setPath(request.getContextPath());
uidCookie.setPath("/");
uidCookie.setMaxAge(APP_USER_COOKIE_TTL);
response.addCookie(uidCookie);
log.info("Created new user " + userId);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment