diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-17 22:48:33 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-17 22:48:33 +1300 |
commit | af6c734879aa483efcc8150d5fdb704f40fb59cd (patch) | |
tree | 3d8e4c832f87954513b1dbd614f7a1f757a4fa99 /src/org/traccar/api/resource/SessionResource.java | |
parent | 512b95fd6975005c6460ddad16714502510cb16e (diff) | |
download | traccar-server-af6c734879aa483efcc8150d5fdb704f40fb59cd.tar.gz traccar-server-af6c734879aa483efcc8150d5fdb704f40fb59cd.tar.bz2 traccar-server-af6c734879aa483efcc8150d5fdb704f40fb59cd.zip |
Add user expiration and device limit
Diffstat (limited to 'src/org/traccar/api/resource/SessionResource.java')
-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 2847e41c1..a459186fe 100644 --- a/src/org/traccar/api/resource/SessionResource.java +++ b/src/org/traccar/api/resource/SessionResource.java @@ -64,7 +64,7 @@ public class SessionResource extends BaseResource { } } if (email != null && password != null) { - User user = Context.getDataManager().login(email, password); + User user = Context.getPermissionsManager().login(email, password); if (user != null) { userId = user.getId(); request.getSession().setAttribute(USER_ID_KEY, userId); |