aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/BaseServlet.java
diff options
context:
space:
mode:
authorRafael Guterres <guterresrafael@gmail.com>2015-11-06 01:06:59 -0200
committerRafael Guterres <guterresrafael@gmail.com>2015-11-06 01:06:59 -0200
commitd7d53864f610211a1591d056ccf8e7295438e4a6 (patch)
tree56c6a8ccf990a9d53a0532f3401f28f9cc17e811 /src/org/traccar/web/BaseServlet.java
parent6214776d2ff4c10de27add89d5de0be8999da146 (diff)
downloadtrackermap-server-d7d53864f610211a1591d056ccf8e7295438e4a6.tar.gz
trackermap-server-d7d53864f610211a1591d056ccf8e7295438e4a6.tar.bz2
trackermap-server-d7d53864f610211a1591d056ccf8e7295438e4a6.zip
Fix checkstyle
Diffstat (limited to 'src/org/traccar/web/BaseServlet.java')
-rw-r--r--src/org/traccar/web/BaseServlet.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/web/BaseServlet.java b/src/org/traccar/web/BaseServlet.java
index a77ad0908..039e3a1f4 100644
--- a/src/org/traccar/web/BaseServlet.java
+++ b/src/org/traccar/web/BaseServlet.java
@@ -65,7 +65,9 @@ public abstract class BaseServlet extends HttpServlet {
String authorization = req.getHeader(Authorization.HEADER);
if (authorization != null && !authorization.isEmpty()) {
Map<String, String> authMap = Authorization.parse(authorization);
- User user = Context.getDataManager().login(authMap.get(Authorization.USERNAME), authMap.get(Authorization.PASSWORD));
+ String username = authMap.get(Authorization.USERNAME);
+ String password = authMap.get(Authorization.PASSWORD);
+ User user = Context.getDataManager().login(username, password);
if (user != null) {
return user.getId();
}