2017-04-27 01:26:58 -05:00
|
|
|
<?php
|
|
|
|
|
2017-08-10 22:36:05 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* RequestedNewPassword.php
|
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2017-04-27 01:26:58 -05:00
|
|
|
namespace FireflyIII\Mail;
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class RequestedNewPassword extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
/** @var string */
|
2017-06-07 04:13:04 -05:00
|
|
|
public $ipAddress;
|
2017-06-05 04:12:50 -05:00
|
|
|
/** @var string */
|
2017-06-07 04:13:04 -05:00
|
|
|
public $url;
|
2017-04-27 01:26:58 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* RequestedNewPassword constructor.
|
|
|
|
*
|
|
|
|
* @param string $url
|
2017-06-07 04:13:04 -05:00
|
|
|
* @param string $ipAddress
|
2017-04-27 01:26:58 -05:00
|
|
|
*/
|
2017-06-07 04:13:04 -05:00
|
|
|
public function __construct(string $url, string $ipAddress)
|
2017-04-27 01:26:58 -05:00
|
|
|
{
|
2017-06-07 04:13:04 -05:00
|
|
|
$this->url = $url;
|
|
|
|
$this->ipAddress = $ipAddress;
|
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');
|
|
|
|
}
|
|
|
|
}
|