aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorKhurshid Fayzullaev <khurshidfayzullaev@yahoo.com>2014-03-20 15:03:48 -0400
committerKhurshid Fayzullaev <khurshidfayzullaev@yahoo.com>2014-03-20 15:03:48 -0400
commitf40f6e306d055ebc46b0e22c850a21f0cd0cfb6c (patch)
tree580980d5381fbfe77d66f5135a78efd90d249bb2 /src/org/traccar
parent6cd0a8c9327d2628d022d3f2ad87ac2de7026a97 (diff)
downloadtrackermap-web-f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c.tar.gz
trackermap-web-f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c.tar.bz2
trackermap-web-f40f6e306d055ebc46b0e22c850a21f0cd0cfb6c.zip
Update DataServiceImpl.java
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/web/server/model/DataServiceImpl.java12
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 e1f4748b..3ae4d21d 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
{