|
|
@@ -111,7 +111,14 @@ class CronController extends BackendController |
|
|
|
|
|
|
|
$u->nom = $nom ; |
|
|
|
$u->prenom = $prenom ; |
|
|
|
$u->email = strtolower($prenom).'.'.strtolower($nom).'@yopmail.com' ; |
|
|
|
|
|
|
|
$email = strtolower($prenom).'.'.strtolower($nom).'@yopmail.com' ; |
|
|
|
$email = htmlentities($email, ENT_NOQUOTES, 'utf-8'); |
|
|
|
$email = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $email); |
|
|
|
$email = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $email); // pour les ligatures e.g. 'œ' |
|
|
|
$email = preg_replace('#&[^;]+;#', '', $email); // supprime les autres caractères |
|
|
|
$u->email = $email ; |
|
|
|
|
|
|
|
$u->telephone = '0600000000' ; |
|
|
|
} |
|
|
|
else { |
|
|
@@ -124,7 +131,7 @@ class CronController extends BackendController |
|
|
|
$u->password_hash = '$2y$13$2D5T3Eo0pySmtlAuEGcfmOdTR5mleog8Y6YPGhop/ych6pbj6aN2y' ; |
|
|
|
} |
|
|
|
|
|
|
|
$u->save() ; |
|
|
|
$u->save() |
|
|
|
} |
|
|
|
} |
|
|
|
} |