diff options
author | Khaksar Weqar <wkhaksar1@gmail.com> | 2021-11-04 09:56:42 +0100 |
---|---|---|
committer | Khaksar Weqar <wkhaksar1@gmail.com> | 2021-11-04 09:56:42 +0100 |
commit | 2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7 (patch) | |
tree | 958d3151cc5cd3d0c4bf2b72016c90c92dc3659b /src/main/java/org/traccar/api | |
parent | 64d38de4a3c8063ca8aabdc5583843e6db3c9446 (diff) | |
download | trackermap-server-2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7.tar.gz trackermap-server-2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7.tar.bz2 trackermap-server-2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7.zip |
formatting-reverted
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r-- | src/main/java/org/traccar/api/resource/PasswordResource.java | 6 |
1 files changed, 3 insertions, 3 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..74cb7ca34 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.NotificationMessage; import org.traccar.notification.TextTemplateFormatter; import javax.annotation.security.PermitAll; @@ -53,8 +53,8 @@ public class PasswordResource extends BaseResource { Context.getUsersManager().updateItem(user); VelocityContext velocityContext = TextTemplateFormatter.prepareContext(null); velocityContext.put("token", token); - FullMessage message = TextTemplateFormatter.formatFullMessage(velocityContext, "passwordReset"); - Context.getMailManager().sendMessage(userId, message.getSubject(), message.getBody()); + NotificationMessage fullMessage = TextTemplateFormatter.formatMessage(velocityContext, "passwordReset","full"); + Context.getMailManager().sendMessage(userId, fullMessage.getSubject(), fullMessage.getBody()); break; } } |