aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/User.java
diff options
context:
space:
mode:
authorIrving Gonzalez <ialexis93@gmail.com>2015-06-09 21:55:35 -0600
committerIrving Gonzalez <ialexis93@gmail.com>2015-06-09 21:55:35 -0600
commitd8f950b6b90f3ce144fd2ae78184844ffbacc9b7 (patch)
treefc9642ed3159dd16ebd1c5448233b251b091921c /src/org/traccar/model/User.java
parent42eaa18d37edb09df6cb39174f1da1358e3280e7 (diff)
parentee087f587a96700d91e407d434e94d1616c18368 (diff)
downloadtrackermap-server-d8f950b6b90f3ce144fd2ae78184844ffbacc9b7.tar.gz
trackermap-server-d8f950b6b90f3ce144fd2ae78184844ffbacc9b7.tar.bz2
trackermap-server-d8f950b6b90f3ce144fd2ae78184844ffbacc9b7.zip
Merge branch 'master' of https://github.com/tananaev/traccar
Conflicts: .gitignore
Diffstat (limited to 'src/org/traccar/model/User.java')
-rw-r--r--src/org/traccar/model/User.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java
index 2df5f276d..410bc4d74 100644
--- a/src/org/traccar/model/User.java
+++ b/src/org/traccar/model/User.java
@@ -15,6 +15,8 @@
*/
package org.traccar.model;
+import org.traccar.helper.Hashing;
+
public class User implements Factory {
@Override
@@ -34,9 +36,9 @@ public class User implements Factory {
public String getEmail() { return email; }
public void setEmail(String email) { this.email = email; }
- private String password;
- public String getPassword() { return password; }
- public void setPassword(String password) { this.password = password; }
+ private byte[] password;
+ public byte[] getPassword() { return password; }
+ public void setPassword(String password) { this.password = Hashing.sha256(password); }
private boolean readonly;
@@ -57,5 +59,4 @@ public class User implements Factory {
private double longitude;
private int zoom;
-
}