Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
afd6cd26
Commit
afd6cd26
authored
12 years ago
by
Christoph Thelen
Browse files
Options
Downloads
Patches
Plain Diff
Just use sessionkey inside URL and require no POST body
parent
b638b48a
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/controller/SessionController.java
+2
-2
2 additions, 2 deletions
...ain/java/de/thm/arsnova/controller/SessionController.java
with
2 additions
and
2 deletions
src/main/java/de/thm/arsnova/controller/SessionController.java
+
2
−
2
View file @
afd6cd26
...
...
@@ -105,9 +105,9 @@ public class SessionController extends AbstractController {
return
null
;
}
@RequestMapping
(
value
=
"/session/{key}/online"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/session/{
session
key}/online"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
LoggedIn
registerAsOnlineUser
(
@PathVariable
String
key
,
@RequestBody
String
sessionkey
,
HttpServletResponse
response
)
{
public
LoggedIn
registerAsOnlineUser
(
@PathVariable
String
sessionkey
,
HttpServletResponse
response
)
{
User
user
=
userService
.
getUser
(
SecurityContextHolder
.
getContext
().
getAuthentication
());
LoggedIn
loggedIn
=
sessionService
.
registerAsOnlineUser
(
user
,
sessionkey
);
if
(
loggedIn
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment