summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-07-06 10:59:39 (GMT)
committerAlex Pott2018-07-06 10:59:39 (GMT)
commit78699bad0c80c0260bd76c43d328f2ec8404f27b (patch)
treea3a6c8c0bbdf60f063a7c708a60e292bf88cd4b2
parent03b22009910a6fe95f376ee997de9be5b7e0f91e (diff)
Issue #2983591 by zuhair_ak, rattusrattus, martin_q, Eli-T, alexpott, John Cook: Add example.com email addresses to users created during Umami install
-rw-r--r--core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php b/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
index de061a6..b9b855d 100644
--- a/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
+++ b/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
@@ -405,6 +405,7 @@ class InstallHelper implements ContainerInjectionInterface {
$user = $user_storage->create([
'name' => $name,
'status' => 1,
+ 'mail' => mb_strtolower(str_replace(' ', '.', $name)) . '@example.com',
]);
$user->enforceIsNew();
$user->save();