airajena commented on code in PR #5369:
URL: https://github.com/apache/fineract/pull/5369#discussion_r2724066338


##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java:
##########
@@ -93,4 +97,18 @@ public void sendDefinedEmail(EmailDetail emailDetails) {
             throw new PlatformEmailSendException(e);
         }
     }
+
+    @Override
+    public void sendForgotPasswordEmail(String organisationName, String 
contactName, String address, String username,
+            String temporaryPassword) {
+        final String subject = "Password Reset Request - " + organisationName;
+        final String body = "Dear " + contactName + ",\n\n" + "You have 
requested to reset your password for your account on "

Review Comment:
   I tried using text blocks initially, but SpotBugs throws a 
VA_FORMAT_STRING_USES_NEWLINE error when using .formatted() with text blocks 
containing literal newlines. I've kept the string concatenation approach to 
match the existing 
   sendToUserAccount method pattern in the same file, which avoids the SpotBugs 
issue while maintaining consistency.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to