diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-28 04:51:20 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-28 04:51:20 -0800 |
commit | 967d32485fc685774a9cbeba5b42273b0695bcf7 (patch) | |
tree | 1e7bc95af89b1822e7011745ad1cc7397132f43d /src/main/java/org | |
parent | cb20b6984f6cc75e161e37baa6ff8a56a2e246a7 (diff) | |
download | trackermap-server-967d32485fc685774a9cbeba5b42273b0695bcf7.tar.gz trackermap-server-967d32485fc685774a9cbeba5b42273b0695bcf7.tar.bz2 trackermap-server-967d32485fc685774a9cbeba5b42273b0695bcf7.zip |
Fix login regression
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/api/resource/SessionResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/SessionResource.java b/src/main/java/org/traccar/api/resource/SessionResource.java index 2f357a309..979b62589 100644 --- a/src/main/java/org/traccar/api/resource/SessionResource.java +++ b/src/main/java/org/traccar/api/resource/SessionResource.java @@ -127,7 +127,7 @@ public class SessionResource extends BaseResource { throw new WebApplicationException(response); } if (loginResult != null) { - User user = new User(); + User user = loginResult.getUser(); request.getSession().setAttribute(USER_ID_KEY, user.getId()); LogAction.login(user.getId(), WebHelper.retrieveRemoteAddress(request)); return user; |