aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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);