Login Passwort reset
* Passwort Reset Funktion implementiert
This commit is contained in:
@@ -35,6 +35,7 @@ foreach ($sendReminder as $reminder) {
|
|||||||
} else {
|
} else {
|
||||||
$vm = "nachmittags";
|
$vm = "nachmittags";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = str_replace("[&&date&&]", date("d.m.Y", $reminder['start_time']), $calendarTemplate[0]->text);
|
$text = str_replace("[&&date&&]", date("d.m.Y", $reminder['start_time']), $calendarTemplate[0]->text);
|
||||||
$text = str_replace("[&&start&&]", date("H:i", $reminder['start_time']), $text);
|
$text = str_replace("[&&start&&]", date("H:i", $reminder['start_time']), $text);
|
||||||
$text = str_replace("[&&end&&]", date("H:i", $reminder['end_time']), $text);
|
$text = str_replace("[&&end&&]", date("H:i", $reminder['end_time']), $text);
|
||||||
@@ -42,6 +43,8 @@ foreach ($sendReminder as $reminder) {
|
|||||||
$reminderInfo = json_decode($reminder['customer_info_send'], true);
|
$reminderInfo = json_decode($reminder['customer_info_send'], true);
|
||||||
$customerInfoType = $reminderInfo['customer_info_type'];
|
$customerInfoType = $reminderInfo['customer_info_type'];
|
||||||
$customerInfo = $reminderInfo['customer_info_type_text'];
|
$customerInfo = $reminderInfo['customer_info_type_text'];
|
||||||
|
|
||||||
|
|
||||||
if ($customerInfoType == 1) {
|
if ($customerInfoType == 1) {
|
||||||
$body = $text;
|
$body = $text;
|
||||||
$email = new Emailnotification();
|
$email = new Emailnotification();
|
||||||
@@ -54,7 +57,20 @@ foreach ($sendReminder as $reminder) {
|
|||||||
$sms = new SmsNotification();
|
$sms = new SmsNotification();
|
||||||
$body = "Xinon Terminbestätigung:" . PHP_EOL . $text;
|
$body = "Xinon Terminbestätigung:" . PHP_EOL . $text;
|
||||||
$sms->setBody($body);
|
$sms->setBody($body);
|
||||||
$sms->setRecipient($customerInfo);
|
$customerNumber = trim($customerInfo);
|
||||||
|
$customerNumber = str_replace(" ", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace("(", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace(")", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace("-", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace("/", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace(".", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace(",", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace(";", "", $customerNumber);
|
||||||
|
$customerNumber = str_replace(":", "", $customerNumber);
|
||||||
|
if (preg_match('/^0/', $customerNumber)) {
|
||||||
|
$customerNumber = "+43" . substr($customerNumber, 1);
|
||||||
|
}
|
||||||
|
$sms->setRecipient($customerNumber);
|
||||||
$sms->send();
|
$sms->send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user