Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jyrki
fitbit4j
Commits
87d0afa4
Commit
87d0afa4
authored
13 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
SITE-6353 - Example application cannot be authorized
parent
6c83f490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fitbit4j-example-client/src/main/java/com/fitbit/web/controller/FitbitApiClientController.java
+1
-1
.../com/fitbit/web/controller/FitbitApiClientController.java
with
1 addition
and
1 deletion
+1
-1
fitbit4j-example-client/src/main/java/com/fitbit/web/controller/FitbitApiClientController.java
+
1
-
1
View file @
87d0afa4
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help