aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-06 19:54:32 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-06 19:54:32 -0700
commitb164114d23ad3d0f965c003489e31a6c0d78b0d3 (patch)
treea182b04cdc8d7187febf299221bc4ad44f0f887a /src/main/java/org/traccar/database
parent8f90707e17e66e9d1aa98fa5fd06cdd30e9c2760 (diff)
downloadtrackermap-server-b164114d23ad3d0f965c003489e31a6c0d78b0d3.tar.gz
trackermap-server-b164114d23ad3d0f965c003489e31a6c0d78b0d3.tar.bz2
trackermap-server-b164114d23ad3d0f965c003489e31a6c0d78b0d3.zip
Fix user creation
Diffstat (limited to 'src/main/java/org/traccar/database')
-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);