Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
47de34f3
Commit
47de34f3
authored
Feb 05, 2018
by
Piotr Gawron
Browse files
small refactor in response for login/logout methods to avoid exceptions in logs
parent
92f5349b
Changes
1
Hide whitespace changes
Inline
Side-by-side
rest-api/src/main/java/lcsb/mapviewer/api/users/UserController.java
View file @
47de34f3
...
...
@@ -56,9 +56,7 @@ public class UserController extends BaseController {
cookie
.
setPath
(
cookiePath
);
response
.
addCookie
(
cookie
);
response
.
getWriter
().
write
(
"{\"info\":\"Login successful. TOKEN returned as a cookie\"}"
);
response
.
getWriter
().
flush
();
response
.
getWriter
().
close
();
result
.
put
(
"info"
,
"Login successful. TOKEN returned as a cookie"
);
return
result
;
}
}
...
...
@@ -90,9 +88,7 @@ public class UserController extends BaseController {
cookie
.
setPath
(
cookiePath
);
response
.
addCookie
(
cookie
);
response
.
getWriter
().
write
(
"{\"status\":\"OK\"}"
);
response
.
getWriter
().
flush
();
response
.
getWriter
().
close
();
result
.
put
(
"status"
,
"OK"
);
return
result
;
}
...
...
Write
Preview
Markdown
is supported
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