Commit 6ce00b43 authored by Tom Käsler's avatar Tom Käsler

Add PasswordResetKey to the mail sent

parent d5d06226
Pipeline #27192 failed with stages
in 3 minutes and 4 seconds
......@@ -585,7 +585,13 @@ public class UserServiceImpl extends DefaultEntityServiceImpl<UserProfile> imple
resetPasswordPath,
UriUtils.encodeQueryParam(userProfile.getLoginId(), "UTF-8"), account.getPasswordResetKey());
sendEmail(userProfile, resetPasswordMailSubject, MessageFormat.format(resetPasswordMailBody, resetPasswordUrl));
String mailBody = MessageFormat.format(
resetPasswordMailBody,
resetPasswordUrl,
account.getPasswordResetKey()
);
sendEmail(userProfile, resetPasswordMailSubject, MessageFormat.format(mailBody, resetPasswordUrl));
}
@Override
......
......@@ -116,7 +116,8 @@ security.user-db.registration-mail.body=Welcome to ARSnova!\n\nPlease confirm \
Afterwards, you can log into ARSnova with your e-mail address and password.
security.user-db.reset-password-mail.subject=ARSnova Password Reset
security.user-db.reset-password-mail.body=You requested to reset your \
password.\n\nPlease follow the link below to set a new password:\n{0}
password.\n\nPlease follow the link below to set a new password:\n{0}\n\n \
Your reset key is:\n{1}\n\n
# LDAP authentication
#
......
......@@ -116,7 +116,8 @@ security.user-db.registration-mail.body=Welcome to ARSnova!\n\nPlease confirm \
Afterwards, you can log into ARSnova with your e-mail address and password.
security.user-db.reset-password-mail.subject=ARSnova Password Reset
security.user-db.reset-password-mail.body=You requested to reset your \
password.\n\nPlease follow the link below to set a new password:\n{0}
password.\n\nPlease follow the link below to set a new password:\n{0}\n\n \
Your reset key is:\n{1}\n\n
# LDAP authentication
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment