Replace default scm-manager.org mail address

This commit is contained in:
René Pfeuffer
2022-12-12 10:25:35 +01:00
parent a5349da034
commit 6ec8041b8c
3 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
- type: changed
description: Default host 'scm-manager.org' replaced with 'example.org' in default mail address

View File

@@ -122,7 +122,7 @@ public class UserPermissionITCase extends AbstractPermissionITCaseBase<User>
protected User getModifyItem()
{
User user = new User("scmadmin", "SCM Administrator",
"scm-admin@scm-manager.org");
"scm@example.com");
user.setPassword("hallo123");
user.setType("xml");

View File

@@ -85,7 +85,7 @@ public class AdminAccountStartupAction implements InitializationStep {
if (startupTokenByProperty != null) {
String adminUserName = System.getProperty(INITIAL_USER_PROPERTY, "scmadmin");
context.runAsAdmin((PrivilegedStartupAction) () ->
createAdminUser(adminUserName, "SCM Administrator", "scm-admin@scm-manager.org", startupTokenByProperty));
createAdminUser(adminUserName, "SCM Administrator", "scm@example.com", startupTokenByProperty));
LOG.info("================={}========================", adminUserName.replaceAll(".", "="));
LOG.info("== {} ==", adminUserName.replaceAll(".", " "));
LOG.info("== Created user '{}' with given password ==", adminUserName);