diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-26 08:07:52 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-26 08:07:52 -0800 |
commit | acdc451e3e2ab94f548f078c4bd49985b3c2f01d (patch) | |
tree | 0f396d7b809e7a52adb32e1ee268cbff31235c18 /src/main/java/org/traccar/api/resource | |
parent | 08cb38a2126e91ccde44e9f91d2ad1f149c7e6b5 (diff) | |
download | trackermap-server-acdc451e3e2ab94f548f078c4bd49985b3c2f01d.tar.gz trackermap-server-acdc451e3e2ab94f548f078c4bd49985b3c2f01d.tar.bz2 trackermap-server-acdc451e3e2ab94f548f078c4bd49985b3c2f01d.zip |
Set expiration from token
Diffstat (limited to 'src/main/java/org/traccar/api/resource')
-rw-r--r-- | src/main/java/org/traccar/api/resource/PasswordResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/PasswordResource.java b/src/main/java/org/traccar/api/resource/PasswordResource.java index 029e63a0c..22b3f0cd3 100644 --- a/src/main/java/org/traccar/api/resource/PasswordResource.java +++ b/src/main/java/org/traccar/api/resource/PasswordResource.java @@ -75,7 +75,7 @@ public class PasswordResource extends BaseResource { @FormParam("token") String token, @FormParam("password") String password) throws StorageException, GeneralSecurityException, IOException { - long userId = tokenManager.verifyToken(token); + long userId = tokenManager.verifyToken(token).getUserId(); User user = storage.getObject(User.class, new Request( new Columns.All(), new Condition.Equals("id", userId))); if (user != null) { |