@@ -36,5 +36,5 @@ termes. | |||
*/ | |||
return [ | |||
'adminEmail' => 'contact@laboiteapain.net', | |||
'adminEmail' => 'contact@opendistrib.net', | |||
]; |
@@ -133,11 +133,11 @@ class CronController extends BackendController | |||
$arrayLastnameschecked = []; | |||
$users = User::searchAll([ | |||
'user_etablissement.id_etablissement' => 1 | |||
'user_producer.id_producer' => 1 | |||
]) ; | |||
foreach ($users as $u) { | |||
if ($u->email != 'boulanger@laboiteapain.net') { | |||
if ($u->email != 'producer@opendistrib.net') { | |||
do { | |||
$indexLastname = rand(0, count($arrayLastnames) - 1); | |||
$indexName = rand(0, count($arrayNames) - 1); |
@@ -125,7 +125,7 @@ class UserController extends BackendController | |||
$model->generateAuthKey(); | |||
$model->username = $model->email; | |||
if (!strlen($model->email)) { | |||
$model->username = 'inconnu@laboiteapain.net'; | |||
$model->username = 'inconnu@opendistrib.net'; | |||
} | |||
$model->save(); |
@@ -93,7 +93,7 @@ class MailForm extends Model | |||
foreach($usersArray as $user) { | |||
$body['Messages'][] = [ | |||
'From' => [ | |||
'Email' => $producer->slug.'@laboiteapain.net', | |||
'Email' => $producer->slug.'@opendistrib.net', | |||
'Name' => $producer->name | |||
], | |||
'To' => [ |