diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-26 21:51:15 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-26 21:51:22 -0700 |
commit | cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f (patch) | |
tree | 3c961aa09dc2b9bed25a3b7e99ec7f3eb829d936 /src/main/java/org | |
parent | 7fa60c7f1fc743b90fa988943da28e48148d8b99 (diff) | |
download | trackermap-server-cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f.tar.gz trackermap-server-cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f.tar.bz2 trackermap-server-cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f.zip |
Remove duplicate token
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/api/resource/PasswordResource.java | 1 |
1 files changed, 0 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 ebf4e3b91..2d87a8665 100644 --- a/src/main/java/org/traccar/api/resource/PasswordResource.java +++ b/src/main/java/org/traccar/api/resource/PasswordResource.java @@ -62,7 +62,6 @@ public class PasswordResource extends BaseResource { new Columns.All(), new Condition.Equals("email", email))); if (user != null) { var velocityContext = textTemplateFormatter.prepareContext(permissionsService.getServer(), user); - velocityContext.put("token", tokenManager.generateToken(user.getId())); var fullMessage = textTemplateFormatter.formatMessage(velocityContext, "passwordReset", "full"); mailManager.sendMessage(user, fullMessage.getSubject(), fullMessage.getBody()); } |