aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-26 21:51:15 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-26 21:51:22 -0700
commitcf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f (patch)
tree3c961aa09dc2b9bed25a3b7e99ec7f3eb829d936
parent7fa60c7f1fc743b90fa988943da28e48148d8b99 (diff)
downloadtrackermap-server-cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f.tar.gz
trackermap-server-cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f.tar.bz2
trackermap-server-cf59eb2c734f7d8bd5ea8f9ff82d4dc91492693f.zip
Remove duplicate token
-rw-r--r--src/main/java/org/traccar/api/resource/PasswordResource.java1
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());
}