Skip to content

Commit

Permalink
Switch registration/password reset email text and subject to English
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Jan 21, 2025
1 parent ca01e7b commit 025ad45
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ public Map<String,String> register(@RequestBody Map<String,String> formData, Htt
if(!isTestUser(user)){

// mail to user
String messageBody = "Ihre Anmeldung bei Arachne ist eingegangen und wird in Kürze von uns bearbeitet "
+ "werden." + newLine + newLine + "Mit freundlichen Grüßen" + newLine + "das Arachne-Team";
String messageBody = "Your registration was successful and will be reviewed shortly."
+ newLine + newLine + "Mit freundlichen Grüßen" + newLine + "das Arachne-Team";

if (!mailService.sendMail(user.getEmail(), "Ihre Anmeldung bei Arachne", messageBody)) {
if (!mailService.sendMail(user.getEmail(), "Your registration with iDAI.objects/Arachne", messageBody)) {
LOGGER.error("Unable to send registration eMail to user.");
throw new FormDataException("ui.registration.emailFailed");
}
Expand Down Expand Up @@ -461,7 +461,7 @@ public Map<String,String> reset(@RequestBody Map<String,String> userCredentials,
+ newLine + "You can use the following link to reset your password: " + linkString
+ newLine + "The link is valid until " + expirationDateString + ".";

if (!isTestUser(userByEmail) && !mailService.sendMail(userByEmail.getEmail(), "Passwort zurückgesetzt bei Arachne", messageBody)) {
if (!isTestUser(userByEmail) && !mailService.sendMail(userByEmail.getEmail(), "Passwort reset for iDAI.objects/Arachne", messageBody)) {
LOGGER.error("Unable to send password activation eMail to user: " + userByEmail.getEmail());
resetPasswordRequestDao.delete(request);
result.put("success", "false");
Expand Down

0 comments on commit 025ad45

Please sign in to comment.