aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/User.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-20 03:38:54 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-20 03:38:54 +1300
commit0601225489057f9b2310226c59119186464a6b06 (patch)
tree236148ffcd75a614921a180edc6ae7766bc436c5 /src/org/traccar/model/User.java
parent1937a36997710f117bc742e0e2d9bcab8d9f2d5b (diff)
downloadtrackermap-server-0601225489057f9b2310226c59119186464a6b06.tar.gz
trackermap-server-0601225489057f9b2310226c59119186464a6b06.tar.bz2
trackermap-server-0601225489057f9b2310226c59119186464a6b06.zip
Don't cache user password (fix #2455)
Diffstat (limited to 'src/org/traccar/model/User.java')
-rw-r--r--src/org/traccar/model/User.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java
index 59951718e..860c91629 100644
--- a/src/org/traccar/model/User.java
+++ b/src/org/traccar/model/User.java
@@ -140,14 +140,11 @@ public class User extends Extensible {
this.coordinateFormat = coordinateFormat;
}
- private String password;
-
public String getPassword() {
- return password;
+ return null;
}
public void setPassword(String password) {
- this.password = password;
if (password != null && !password.isEmpty()) {
Hashing.HashingResult hashingResult = Hashing.createHash(password);
hashedPassword = hashingResult.getHash();