mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 18:08:06 +00:00
Send a confirmation email when the password is set for the first time Remove the API link from the menu and move it to the footer Allow different domains to be set in the POST /api/accounts endpoints + related tests Cleanup the API tests Update the dependencies
31 lines
716 B
PHP
31 lines
716 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;
|
|
|
|
public function __construct(Account $account)
|
|
{
|
|
$this->_account = $account;
|
|
}
|
|
|
|
public function build()
|
|
{
|
|
return $this->view('mails.authentication')
|
|
->text('mails.authentication_text')
|
|
->with([
|
|
'link' => route('account.authenticate.email_confirm', [$this->_account->confirmation_key])
|
|
]);
|
|
}
|
|
}
|