flexisip-account-manager/flexiapi/app/Mail/PasswordAuthentication.php
Timothée Jaussoin f3ba51682f Complete email + SMS authentication
Also send an email when the email was changed
2020-09-14 11:24:59 +02:00

41 lines
867 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use App\Account;
class PasswordAuthentication extends Mailable
{
use Queueable, SerializesModels;
private $_account;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct(Account $account)
{
$this->_account = $account;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('mails.authentication')
->text('mails.authentication_text')
->with([
'link' => route('account.authenticate_email_confirm', [$this->_account->confirmation_key])
]);
}
}