diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-19 10:27:44 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-19 10:27:44 +1300 |
commit | a0246954d9d9f248183563d25fad1f2ff2f78b08 (patch) | |
tree | ce6f913a9dd9878cb514995e34275bad75558d9e /src/org/traccar/api | |
parent | b0aa4698e95658f57ec2d3e0ed4f3fe0db8500a2 (diff) | |
download | trackermap-server-a0246954d9d9f248183563d25fad1f2ff2f78b08.tar.gz trackermap-server-a0246954d9d9f248183563d25fad1f2ff2f78b08.tar.bz2 trackermap-server-a0246954d9d9f248183563d25fad1f2ff2f78b08.zip |
Small adjustments to tokens
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r-- | src/org/traccar/api/resource/SessionResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/SessionResource.java b/src/org/traccar/api/resource/SessionResource.java index db8a5c837..996865c4b 100644 --- a/src/org/traccar/api/resource/SessionResource.java +++ b/src/org/traccar/api/resource/SessionResource.java @@ -71,7 +71,7 @@ public class SessionResource extends BaseResource { request.getSession().setAttribute(USER_ID_KEY, userId); } } else if (token != null) { - User user = Context.getPermissionsManager().getUserByToken(request.getParameter("token")); + User user = Context.getPermissionsManager().getUserByToken(token); if (user != null) { userId = user.getId(); request.getSession().setAttribute(USER_ID_KEY, userId); |