Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 9cc83a0

Browse files
author
taleksashina
committed
e-mail messages fixed
1 parent 08aa38e commit 9cc83a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/authentication/web/AuthenticationServlet.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
152152
EmailSender emailSender = FrameworkConfiguration.getInstance(getServletContext())
153153
.getDefaultEmailSender();
154154

155-
emailSender.send(email, "ACC registration", "Your login: " + username + ", password: "
155+
emailSender.send(email, "Ontos LDIW for ACC registration", "Your login: " + username + ", password: "
156156
+ password);
157157
String responseStr = "{\"message\" : \"Your password will be sent to your e-mail address "
158158
+ email + " \"}";
@@ -198,7 +198,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
198198
return;
199199
}
200200
EmailSender emailSender = FrameworkConfiguration.getInstance(getServletContext()).getDefaultEmailSender();
201-
emailSender.send(userProfile.getEmail(), "ACC change password", "Your password for the Linked Data Information Workbench account " + username + " was changed.");
201+
emailSender.send(userProfile.getEmail(), "Ontos LDIW for ACC change password", "Your password for the Linked Data Information Workbench account " + username + " was changed.");
202202

203203
String responseStr = "{\"message\" : \"Your password was changed\"}";
204204
response.getWriter().print(responseStr);
@@ -227,7 +227,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
227227
// send new password to user
228228
EmailSender emailSender = FrameworkConfiguration.getInstance(getServletContext())
229229
.getDefaultEmailSender();
230-
emailSender.send(userProfile.getEmail(), "ACC restore password", "Your login: "
230+
emailSender.send(userProfile.getEmail(), "Ontos LDIW for ACC restore password", "Your login: "
231231
+ username + ", password: " + password);
232232
String responseStr = "{\"message\" : \"New password will be sent to your e-mail address "
233233
+ userProfile.getEmail() + " \"}";

src/main/java/authentication/web/UserManagerServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S
139139
try {
140140
emailSender = FrameworkConfiguration.getInstance(getServletContext())
141141
.getDefaultEmailSender();
142-
emailSender.send(email, "ACC registration", "Your login: " + username + ", password: "
142+
emailSender.send(email, "Ontos LDIW for ACC registration", "Your login: " + username + ", password: "
143143
+ password);
144144
} catch (MessagingException e) {
145145
throw new ServletException("Failed to send email to " + email + " using " + emailSender, e);

0 commit comments

Comments
 (0)