changes in mail content

This commit is contained in:
Konstantinos Spyrou 2023-01-31 15:26:19 +02:00
parent 19923c19fc
commit c2e5af87e8
1 changed files with 11 additions and 8 deletions

View File

@ -147,7 +147,8 @@ public class EmailUtilsImpl implements EmailUtils {
"We received a request to register the " + repository.getEoscDatasourceType() + "[" + repository.getOfficialname() + "]" +
" to the OpenAIRE compliant list of content providers. " +
"\n\n" +
"User Contact: " + authentication.getName() + " (" + ((OIDCAuthenticationToken) authentication).getUserInfo().getEmail() + ")" +
"User Contact: " + ((OIDCAuthenticationToken) authentication).getUserInfo().getName() +
" (" + ((OIDCAuthenticationToken) authentication).getUserInfo().getEmail() + ")" +
"\n\n" +
"Please do not reply to this message\n" +
"This message has been generated automatically.";
@ -196,7 +197,8 @@ public class EmailUtilsImpl implements EmailUtils {
message += "A validation process for this interface against the OpenAIRE guidelines compatibility " +
"has been started. You will be informed in another message once the process is finished." +
"\n\n" +
"User Contact: " + authentication.getName() + " (" + ((OIDCAuthenticationToken) authentication).getUserInfo().getEmail() + ")" +
"User Contact: " + ((OIDCAuthenticationToken) authentication).getUserInfo().getName() +
" (" + ((OIDCAuthenticationToken) authentication).getUserInfo().getEmail() + ")" +
"\n\n" +
"Please do not reply to this message\n" +
"This message has been generated automatically.";
@ -582,7 +584,8 @@ public class EmailUtilsImpl implements EmailUtils {
message += "\nThe users comment was '" + comment + "'\n";
message += "A new iteration process of the validation against the OpenAIRE guidelines compatibility has been started.\n\n" +
"User Contact: " + authentication.getName() + " (" + ((OIDCAuthenticationToken) authentication).getUserInfo().getEmail() + ")" +
"User Contact: " + ((OIDCAuthenticationToken) authentication).getUserInfo().getName() +
" (" + ((OIDCAuthenticationToken) authentication).getUserInfo().getEmail() + ")" +
"\n\n" +
"Please do not reply to this message\n" +
"This message has been generated automatically.";