Skip to content
Snippets Groups Projects
Commit 22376c70 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'reset-key' into 'master'

Add placeholder in reset mail for reset key

See merge request !135
parents 68692631 0f20b0d6
1 merge request!135Add placeholder in reset mail for reset key
Pipeline #27359 passed with warnings with stages
in 1 minute and 53 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}
# 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}
# LDAP authentication
#
......
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