aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-26 20:07:58 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-26 20:07:58 +1200
commit6919dc98ea4d546aea56e815c22fecc3a6c164c8 (patch)
treee05c4aed4922d3fdaed4dd51bce5938c0002f814 /src/org/traccar/http
parentb2cbb5698ee7eea9abd811a6cc653b624b09e7d9 (diff)
downloadtraccar-server-6919dc98ea4d546aea56e815c22fecc3a6c164c8.tar.gz
traccar-server-6919dc98ea4d546aea56e815c22fecc3a6c164c8.tar.bz2
traccar-server-6919dc98ea4d546aea56e815c22fecc3a6c164c8.zip
Change user name to email
Diffstat (limited to 'src/org/traccar/http')
-rw-r--r--src/org/traccar/http/MainServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/http/MainServlet.java b/src/org/traccar/http/MainServlet.java
index 655b47312..65a1bf624 100644
--- a/src/org/traccar/http/MainServlet.java
+++ b/src/org/traccar/http/MainServlet.java
@@ -240,7 +240,7 @@ public class MainServlet extends HttpServlet {
private void login(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
try {
req.getSession().setAttribute(USER_ID,
- Context.getDataManager().login(req.getParameter("name"), req.getParameter("password")));
+ Context.getDataManager().login(req.getParameter("email"), req.getParameter("password")));
resp.getWriter().println("{ success: true }");
} catch (SQLException e) {
throw new ServletException(e);