Few improvments
This commit is contained in:
parent
a8410b1b6a
commit
87301827bd
|
@ -57,26 +57,27 @@ namespace adapters;
|
||||||
*/
|
*/
|
||||||
public static function meta_datas_fields(): array;
|
public static function meta_datas_fields(): array;
|
||||||
|
|
||||||
/**
|
|
||||||
* Does the implemented service support reading smss.
|
|
||||||
*/
|
|
||||||
public static function meta_support_read(): bool;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Does the implemented service support flash smss.
|
* Does the implemented service support flash smss.
|
||||||
*/
|
*/
|
||||||
public static function meta_support_flash(): bool;
|
public static function meta_support_flash(): bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Does the implemented service support status change callback.
|
* Does the implemented service support reading smss.
|
||||||
*/
|
*/
|
||||||
public static function meta_support_status_change(): bool;
|
public static function meta_support_read(): bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Does the implemented service support reception callback.
|
* Does the implemented service support reception callback.
|
||||||
*/
|
*/
|
||||||
public static function meta_support_reception(): bool;
|
public static function meta_support_reception(): bool;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Does the implemented service support status change callback.
|
||||||
|
*/
|
||||||
|
public static function meta_support_status_change(): bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method called to send a SMS to a number.
|
* Method called to send a SMS to a number.
|
||||||
*
|
*
|
||||||
|
|
|
@ -103,7 +103,7 @@ namespace adapters;
|
||||||
'name' => 'sender',
|
'name' => 'sender',
|
||||||
'title' => 'Nom de l\'expéditeur',
|
'title' => 'Nom de l\'expéditeur',
|
||||||
'description' => 'Nom de l\'expéditeur à afficher à la place du numéro (11 caractères max).<br/>
|
'description' => 'Nom de l\'expéditeur à afficher à la place du numéro (11 caractères max).<br/>
|
||||||
<b>Laissez vide pour ne pas utiliser d\'expéditeur nommé.</b><br/>
|
<b>Laissez vide pour ne pas utiliser d\'expéditeur nommé.</b><br/><br/>
|
||||||
Le nom doit avoir été validé au préallable. <b>Si vous utilisez un expéditeur nommé, le destinataire ne pourra pas répondre.</b>',
|
Le nom doit avoir été validé au préallable. <b>Si vous utilisez un expéditeur nommé, le destinataire ne pourra pas répondre.</b>',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
],
|
],
|
||||||
|
|
|
@ -22,7 +22,8 @@ class Mailer extends \descartes\Controller
|
||||||
$this->log->pushHandler(new StreamHandler(PWD_LOGS . '/mail.log', Logger::DEBUG));
|
$this->log->pushHandler(new StreamHandler(PWD_LOGS . '/mail.log', Logger::DEBUG));
|
||||||
|
|
||||||
$this->mail = new PHPMailer(true);
|
$this->mail = new PHPMailer(true);
|
||||||
$this->mail->SMTPDebug = SMTP::DEBUG_OFF;
|
$this->mail->CharSet = 'utf-8';
|
||||||
|
$this->mail->SMTPDebug = SMTP::DEBUG_OFF;
|
||||||
$this->mail->isSMTP();
|
$this->mail->isSMTP();
|
||||||
$this->mail->Host = MAIL['SMTP']['HOST'];
|
$this->mail->Host = MAIL['SMTP']['HOST'];
|
||||||
$this->mail->SMTPAuth = true;
|
$this->mail->SMTPAuth = true;
|
||||||
|
|
|
@ -145,7 +145,7 @@ class User extends \descartes\Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$email = $_POST['email'] ?? false;
|
$email = $_POST['email'] ?? false;
|
||||||
$password = $_POST['password'] ?? \controllers\internals\Tool::generate_password(rand(6, 12));
|
$password = !empty($_POST['password']) ? $_POST['password'] : \controllers\internals\Tool::generate_password(rand(6, 12));
|
||||||
$admin = $_POST['admin'] ?? false;
|
$admin = $_POST['admin'] ?? false;
|
||||||
$status = 'active';
|
$status = 'active';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue