Arreglado el inscribir un nuevo usuario

This commit is contained in:
Jaime Jimenez
2023-07-15 12:09:27 +02:00
parent 4af11ec3e2
commit 2fca432213
7 changed files with 55 additions and 35 deletions

View File

@ -50,9 +50,12 @@ class Integration extends BaseController
if(!empty($user)){
foreach (keywordEmail()??[] as $item){
$field = str_replace(['[','user_',']'],'',$item);
$body = str_replace('['.$item.']',$user[$field],$body);
if(str_contains($body, $field)){
$body = str_replace('['.$item.']',$user->{$field},$body);
}
}
}
if($this->sendMail($subject,unescape($body),$email)){
return $json ? json_encode(["return" => true]) : true;
}else{