diff options
author | Khaksar Weqar <wkhaksar1@gmail.com> | 2021-11-03 09:42:35 +0100 |
---|---|---|
committer | Khaksar Weqar <wkhaksar1@gmail.com> | 2021-11-03 09:42:35 +0100 |
commit | 9fd24af30db35411de8d30b96be665f00d75c0ad (patch) | |
tree | d37d51cff9e0aefddb242194487ff6435bc61814 /src/main/java/org/traccar/api | |
parent | 64d38de4a3c8063ca8aabdc5583843e6db3c9446 (diff) | |
download | trackermap-server-9fd24af30db35411de8d30b96be665f00d75c0ad.tar.gz trackermap-server-9fd24af30db35411de8d30b96be665f00d75c0ad.tar.bz2 trackermap-server-9fd24af30db35411de8d30b96be665f00d75c0ad.zip |
redundant-code-removed
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r-- | src/main/java/org/traccar/api/resource/PasswordResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/api/resource/PasswordResource.java b/src/main/java/org/traccar/api/resource/PasswordResource.java index 20e8d768d..16b0afc12 100644 --- a/src/main/java/org/traccar/api/resource/PasswordResource.java +++ b/src/main/java/org/traccar/api/resource/PasswordResource.java @@ -19,7 +19,7 @@ import org.apache.velocity.VelocityContext; import org.traccar.Context; import org.traccar.api.BaseResource; import org.traccar.model.User; -import org.traccar.notification.FullMessage; +import org.traccar.notification.Message; import org.traccar.notification.TextTemplateFormatter; import javax.annotation.security.PermitAll; @@ -53,7 +53,7 @@ public class PasswordResource extends BaseResource { Context.getUsersManager().updateItem(user); VelocityContext velocityContext = TextTemplateFormatter.prepareContext(null); velocityContext.put("token", token); - FullMessage message = TextTemplateFormatter.formatFullMessage(velocityContext, "passwordReset"); + Message message = TextTemplateFormatter.formatMessage(velocityContext, "passwordReset", "full"); Context.getMailManager().sendMessage(userId, message.getSubject(), message.getBody()); break; } |