aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-28 04:51:20 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-28 04:51:20 -0800
commit967d32485fc685774a9cbeba5b42273b0695bcf7 (patch)
tree1e7bc95af89b1822e7011745ad1cc7397132f43d /src/main/java/org/traccar
parentcb20b6984f6cc75e161e37baa6ff8a56a2e246a7 (diff)
downloadtrackermap-server-967d32485fc685774a9cbeba5b42273b0695bcf7.tar.gz
trackermap-server-967d32485fc685774a9cbeba5b42273b0695bcf7.tar.bz2
trackermap-server-967d32485fc685774a9cbeba5b42273b0695bcf7.zip
Fix login regression
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/api/resource/SessionResource.java2
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;