CIM68 - Disentangle username from email
This commit is contained in:
@@ -116,7 +116,7 @@ if ($permission == 3 || $permission == 4){
|
||||
$stmt->execute([$resetkey,$id]);
|
||||
//STEP 3 - Send to user
|
||||
include_once './assets/mail/email_template_reset.php';
|
||||
send_mail($user_data['username'],$subject,$message,'','');
|
||||
send_mail($user_data['email'],$subject,$message,'','');
|
||||
}
|
||||
|
||||
$accounthierarchy = json_encode($account, JSON_UNESCAPED_UNICODE);
|
||||
@@ -236,7 +236,7 @@ elseif ($command == 'insert' && isAllowed('user',$profile,$permission,'C') === 1
|
||||
$resetkey = generate_jwt($headers, $payload);
|
||||
//STEP 2- Send to user
|
||||
include_once './assets/mail/email_template_new.php';
|
||||
send_mail($post_content['username'],$subject,$message,'','');
|
||||
send_mail($post_content['email'],$subject,$message,'','');
|
||||
} else {
|
||||
//Encrypt results
|
||||
$messages = generate_payload($exists);
|
||||
|
||||
Reference in New Issue
Block a user