diff options
author | Khurshid Fayzullaev <khurshidfayzullaev@yahoo.com> | 2014-03-20 15:03:48 -0400 |
---|---|---|
committer | Khurshid Fayzullaev <khurshidfayzullaev@yahoo.com> | 2014-03-20 15:03:48 -0400 |
commit | f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c (patch) | |
tree | 580980d5381fbfe77d66f5135a78efd90d249bb2 /src | |
parent | 6cd0a8c9327d2628d022d3f2ad87ac2de7026a97 (diff) | |
download | etbsa-traccar-web-f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c.tar.gz etbsa-traccar-web-f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c.tar.bz2 etbsa-traccar-web-f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c.zip |
Update DataServiceImpl.java
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/web/server/model/DataServiceImpl.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/web/server/model/DataServiceImpl.java b/src/org/traccar/web/server/model/DataServiceImpl.java index e1f4748..3ae4d21 100644 --- a/src/org/traccar/web/server/model/DataServiceImpl.java +++ b/src/org/traccar/web/server/model/DataServiceImpl.java @@ -155,12 +155,12 @@ public class DataServiceImpl extends RemoteServiceServlet implements DataService query.setParameter("login", login); List<User> results = query.getResultList(); if (results.isEmpty()) { - User user = new User(); - user.setLogin(login); - user.setPassword(password); - createUser(getSessionEntityManager(), user); - setSessionUser(user); - return user; + User user = new User(); + user.setLogin(login); + user.setPassword(password); + createUser(getSessionEntityManager(), user); + setSessionUser(user); + return user; } else { |