mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Working smtp for email
This commit is contained in:
parent
379eaa2786
commit
48ef0c063e
8 changed files with 49 additions and 35 deletions
|
@ -119,8 +119,9 @@ namespace controllers\publics;
|
|||
$token = $Tokenista->generate(3600, ['id_user' => $user['id']]);
|
||||
|
||||
$reset_link = \descartes\Router::url('Connect', 'reset_password', ['id_user' => $user['id'], 'token' => $token]);
|
||||
|
||||
\controllers\internals\Tool::send_email($email, EMAIL_RESET_PASSWORD, ['reset_link' => $reset_link]);
|
||||
|
||||
$mailer = new \controllers\internals\Mailer();
|
||||
$email_send = $mailer->enqueue($email, EMAIL_RESET_PASSWORD, ['reset_link' => $reset_link]);
|
||||
|
||||
return $this->render('connect/send-reset-password');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue