diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-21 15:45:57 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-21 15:45:57 -0700 |
commit | 56f742c2e3e009c6af74fec689c459958d8945e7 (patch) | |
tree | a66679e557cfe879c8c7d204fb2bba14651b69c9 /src/main/java/org/traccar/database/UsersManager.java | |
parent | 24197b483c932c473ef14fb8efff4d368b2559fe (diff) | |
download | trackermap-server-56f742c2e3e009c6af74fec689c459958d8945e7.tar.gz trackermap-server-56f742c2e3e009c6af74fec689c459958d8945e7.tar.bz2 trackermap-server-56f742c2e3e009c6af74fec689c459958d8945e7.zip |
Fix user creation
Diffstat (limited to 'src/main/java/org/traccar/database/UsersManager.java')
-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); |