diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-06 19:54:32 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-06 19:54:32 -0700 |
commit | b164114d23ad3d0f965c003489e31a6c0d78b0d3 (patch) | |
tree | a182b04cdc8d7187febf299221bc4ad44f0f887a /src/main | |
parent | 8f90707e17e66e9d1aa98fa5fd06cdd30e9c2760 (diff) | |
download | trackermap-server-b164114d23ad3d0f965c003489e31a6c0d78b0d3.tar.gz trackermap-server-b164114d23ad3d0f965c003489e31a6c0d78b0d3.tar.bz2 trackermap-server-b164114d23ad3d0f965c003489e31a6c0d78b0d3.zip |
Fix user creation
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/database/UsersManager.java | 6 |
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); |