aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-21 15:45:57 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-21 15:45:57 -0700
commit56f742c2e3e009c6af74fec689c459958d8945e7 (patch)
treea66679e557cfe879c8c7d204fb2bba14651b69c9 /src
parent24197b483c932c473ef14fb8efff4d368b2559fe (diff)
downloadtrackermap-server-56f742c2e3e009c6af74fec689c459958d8945e7.tar.gz
trackermap-server-56f742c2e3e009c6af74fec689c459958d8945e7.tar.bz2
trackermap-server-56f742c2e3e009c6af74fec689c459958d8945e7.zip
Fix user creation
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/database/UsersManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/database/UsersManager.java b/src/main/java/org/traccar/database/UsersManager.java
index 31759dc8b..a54226cfe 100644
--- a/src/main/java/org/traccar/database/UsersManager.java
+++ b/src/main/java/org/traccar/database/UsersManager.java
@@ -60,6 +60,12 @@ public class UsersManager extends SimpleObjectManager<User> {
}
@Override
+ public void addItem(User user) throws StorageException {
+ super.addItem(user);
+ getDataManager().updateUserPassword(user);
+ }
+
+ @Override
public void updateItem(User user) throws StorageException {
if (user.getHashedPassword() != null) {
getDataManager().updateUserPassword(user);