Skip to content
Snippets Groups Projects
Unverified Commit 78699bad authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2983591 by zuhair_ak, rattusrattus, martin_q, Eli-T, alexpott, John...

Issue #2983591 by zuhair_ak, rattusrattus, martin_q, Eli-T, alexpott, John Cook: Add example.com email addresses to users created during Umami install
parent 03b22009
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -405,6 +405,7 @@ protected function getUser($name) {
$user = $user_storage->create([
'name' => $name,
'status' => 1,
'mail' => mb_strtolower(str_replace(' ', '.', $name)) . '@example.com',
]);
$user->enforceIsNew();
$user->save();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment