2017-04-27 01:26:58 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Mail;
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class RequestedNewPassword extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
/** @var string */
|
|
|
|
public $url;
|
2017-06-05 04:12:50 -05:00
|
|
|
/** @var string */
|
|
|
|
public $userIp;
|
2017-04-27 01:26:58 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* RequestedNewPassword constructor.
|
|
|
|
*
|
|
|
|
* @param string $url
|
2017-06-05 04:12:50 -05:00
|
|
|
* @param string $userIp
|
2017-04-27 01:26:58 -05:00
|
|
|
*/
|
2017-06-05 04:12:50 -05:00
|
|
|
public function __construct(string $url, string $userIp)
|
2017-04-27 01:26:58 -05:00
|
|
|
{
|
2017-06-05 04:12:50 -05:00
|
|
|
$this->url = $url;
|
|
|
|
$this->userIp = $userIp;
|
2017-04-27 01:26:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
return $this->view('emails.password-html')->text('emails.password-text')->subject('Your password reset request');
|
|
|
|
}
|
|
|
|
}
|