aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http
diff options
context:
space:
mode:
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);