diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-10 15:45:55 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-10 15:45:55 +1200 |
commit | ee087f587a96700d91e407d434e94d1616c18368 (patch) | |
tree | fc9642ed3159dd16ebd1c5448233b251b091921c /src/org/traccar/model | |
parent | ee4c07115d3bc3e58b92310f54bee7bd616ec669 (diff) | |
parent | 96a2d024658746f50628727f7255c4e19ecdb1b4 (diff) | |
download | trackermap-server-ee087f587a96700d91e407d434e94d1616c18368.tar.gz trackermap-server-ee087f587a96700d91e407d434e94d1616c18368.tar.bz2 trackermap-server-ee087f587a96700d91e407d434e94d1616c18368.zip |
Merge pull request #1240 from demianalonso/master
Move SQL queries to the config file
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/User.java | 9 |
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; - } |