aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api/resource
diff options
context:
space:
mode:
authordeveloperKurt <mustafakurt.business@gmail.com>2020-01-03 10:20:07 +0300
committerdeveloperKurt <mustafakurt.business@gmail.com>2020-01-03 10:20:07 +0300
commit13b27f8d7ac08bb3ff1a56a48865201263d6462d (patch)
tree0a64acc277808d83d6a7ce6a65da7ac42a2de05e /src/main/java/org/traccar/api/resource
parenta6ab28c8990d0506e20bb2c45ed9c6183a9b9594 (diff)
downloadtrackermap-server-13b27f8d7ac08bb3ff1a56a48865201263d6462d.tar.gz
trackermap-server-13b27f8d7ac08bb3ff1a56a48865201263d6462d.tar.bz2
trackermap-server-13b27f8d7ac08bb3ff1a56a48865201263d6462d.zip
As the owner requested:
• Javadocs are removed • Spring test framework removed, created custom mock implementation instead • Added class and method renamed
Diffstat (limited to 'src/main/java/org/traccar/api/resource')
-rw-r--r--src/main/java/org/traccar/api/resource/SessionResource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/api/resource/SessionResource.java b/src/main/java/org/traccar/api/resource/SessionResource.java
index 65e05a4a2..e3c5d457f 100644
--- a/src/main/java/org/traccar/api/resource/SessionResource.java
+++ b/src/main/java/org/traccar/api/resource/SessionResource.java
@@ -18,7 +18,7 @@ package org.traccar.api.resource;
import org.traccar.Context;
import org.traccar.api.BaseResource;
import org.traccar.helper.DataConverter;
-import org.traccar.helper.IpRetriever;
+import org.traccar.helper.ServletHelper;
import org.traccar.helper.LogAction;
import org.traccar.model.User;
@@ -107,7 +107,7 @@ public class SessionResource extends BaseResource {
LogAction.login(user.getId());
return user;
} else {
- LogAction.failedLogin(IpRetriever.retrieveIP(request));
+ LogAction.failedLogin(ServletHelper.retrieveRemoteAddress(request));
throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build());
}
}