aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-20 07:21:51 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-20 07:21:51 -0700
commitafae915a0db4e641e8e93b1d334d62804c83868f (patch)
treee11dee50c190f135ce63a25038ba721a80360f71 /src/main/java/org/traccar/database
parent5afb5176c63e97b1a99ef54aa7af09927fb1f3f2 (diff)
downloadtrackermap-server-afae915a0db4e641e8e93b1d334d62804c83868f.tar.gz
trackermap-server-afae915a0db4e641e8e93b1d334d62804c83868f.tar.bz2
trackermap-server-afae915a0db4e641e8e93b1d334d62804c83868f.zip
Fix login issue
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/LoginService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/LoginService.java b/src/main/java/org/traccar/database/LoginService.java
index a30e443b5..6ed45202a 100644
--- a/src/main/java/org/traccar/database/LoginService.java
+++ b/src/main/java/org/traccar/database/LoginService.java
@@ -52,7 +52,7 @@ public class LoginService {
public User login(String email, String password) throws StorageException {
User user = storage.getObject(User.class, new Request(
- new Columns.Include("id", "login", "hashedPassword", "salt"),
+ new Columns.All(),
new Condition.Or(
new Condition.Equals("email", "email", email.trim()),
new Condition.Equals("login", "email"))));