Revision 8cb8fc5c
Added by Andreas Kohlbecker over 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/security/AccountSelfManagementService.java | ||
---|---|---|
66 | 66 |
* @param userEmail |
67 | 67 |
* The TO-address |
68 | 68 |
* @param userName |
69 |
* Used to set the value for <code>${userName}</code> |
|
69 |
* Used to set the value for <code>${userName}</code>. Optional, may be null.
|
|
70 | 70 |
* @param subjectTemplate |
71 | 71 |
* A {@link StringSubstitutor} template for the email subject |
72 | 72 |
* @param bodyTemplate |
... | ... | |
85 | 85 |
if(supportEmailAddress != null) { |
86 | 86 |
additionalValuesMap.put("supportEmailAddress", supportEmailAddress); |
87 | 87 |
} |
88 |
additionalValuesMap.put("userName", userName); |
|
88 |
if(userName != null) { |
|
89 |
additionalValuesMap.put("userName", userName); |
|
90 |
} |
|
89 | 91 |
additionalValuesMap.put("dataBase", dataSourceBeanId); |
90 | 92 |
StringSubstitutor substitutor = new StringSubstitutor(additionalValuesMap); |
91 | 93 |
|
Also available in: Unified diff
ref #9497 user account self registration: AccountCreationRequest only with email-address