diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-04 17:45:11 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-04 17:45:11 +1300 |
commit | ef19de9ed7b815aef4f3f9640cb9bcc806cf1e41 (patch) | |
tree | 02d594a9ad38209dd62517f1bebbeb66290e325e /src/org/traccar/database/DataManager.java | |
parent | 722f69031f53bdab5a72e926f101ef4b0df1c828 (diff) | |
download | trackermap-server-ef19de9ed7b815aef4f3f9640cb9bcc806cf1e41.tar.gz trackermap-server-ef19de9ed7b815aef4f3f9640cb9bcc806cf1e41.tar.bz2 trackermap-server-ef19de9ed7b815aef4f3f9640cb9bcc806cf1e41.zip |
Fix misc check style issues
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index af2dd559a..8be6aec42 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -241,7 +241,11 @@ public class DataManager implements IdentityManager { User user = QueryBuilder.create(dataSource, getQuery("database.loginUser")) .setString("email", email) .executeQuerySingle(new User()); - return user != null && user.isPasswordValid(password) ? user : null; + if (user != null && user.isPasswordValid(password)) { + return user; + } else { + return null; + } } public Collection<User> getUsers() throws SQLException { |