diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-26 20:07:58 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-26 20:07:58 +1200 |
commit | 6919dc98ea4d546aea56e815c22fecc3a6c164c8 (patch) | |
tree | e05c4aed4922d3fdaed4dd51bce5938c0002f814 /src/org/traccar/http/MainServlet.java | |
parent | b2cbb5698ee7eea9abd811a6cc653b624b09e7d9 (diff) | |
download | trackermap-server-6919dc98ea4d546aea56e815c22fecc3a6c164c8.tar.gz trackermap-server-6919dc98ea4d546aea56e815c22fecc3a6c164c8.tar.bz2 trackermap-server-6919dc98ea4d546aea56e815c22fecc3a6c164c8.zip |
Change user name to email
Diffstat (limited to 'src/org/traccar/http/MainServlet.java')
-rw-r--r-- | src/org/traccar/http/MainServlet.java | 2 |
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); |