aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortsmgeek <tsmgeek@users.noreply.github.com>2017-08-14 22:36:32 +0100
committerGitHub <noreply@github.com>2017-08-14 22:36:32 +0100
commit3d1c64a4564a88239ec9837c1b0ac9367023fb64 (patch)
tree332a37b3f6dd7767349a84e54986693781466ca4 /src
parent52d19ba205d76d18d62789fbb013a43fef024e91 (diff)
downloadtrackermap-server-3d1c64a4564a88239ec9837c1b0ac9367023fb64.tar.gz
trackermap-server-3d1c64a4564a88239ec9837c1b0ac9367023fb64.tar.bz2
trackermap-server-3d1c64a4564a88239ec9837c1b0ac9367023fb64.zip
Trim/Lowercase email address used for auth
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/database/DataManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index b7d3cb1e4..d5b4dd617 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -297,7 +297,7 @@ public class DataManager {
public User login(String email, String password) throws SQLException {
User user = QueryBuilder.create(dataSource, getQuery("database.loginUser"))
- .setString("email", email)
+ .setString("email", email.trim().toLowerCase())
.executeQuerySingle(User.class);
if (user != null && user.isPasswordValid(password)) {
return user;