mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
Make some vars longer.
This commit is contained in:
parent
cb34ff4c83
commit
ab4616a3ad
@ -21,19 +21,18 @@ class ResendConfirmation extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $ip;
|
||||
public $ipAddress;
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param User $user
|
||||
*
|
||||
* @param string $ip
|
||||
* @param string $ipAddress
|
||||
*/
|
||||
public function __construct(User $user, string $ip)
|
||||
public function __construct(User $user, string $ipAddress)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->ip = $ip;
|
||||
$this->user = $user;
|
||||
$this->ipAddress = $ipAddress;
|
||||
}
|
||||
}
|
@ -21,19 +21,18 @@ class UserRegistration extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
public $ip;
|
||||
public $ipAddress;
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param User $user
|
||||
*
|
||||
* @param string $ip
|
||||
* @param string $ipAddress
|
||||
*/
|
||||
public function __construct(User $user, string $ip)
|
||||
public function __construct(User $user, string $ipAddress)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->ip = $ip;
|
||||
$this->ip = $ipAddress;
|
||||
}
|
||||
}
|
@ -48,7 +48,7 @@ class SendRegistrationMail
|
||||
// get the email address
|
||||
$email = $event->user->email;
|
||||
$address = route('index');
|
||||
$ipAddress = $event->ip;
|
||||
$ipAddress = $event->ipAddress;
|
||||
// send email.
|
||||
try {
|
||||
Mail::send(
|
||||
|
@ -42,7 +42,7 @@ class UserConfirmation
|
||||
public function resendConfirmation(ResendConfirmation $event)
|
||||
{
|
||||
$user = $event->user;
|
||||
$ipAddress = $event->ip;
|
||||
$ipAddress = $event->ipAddress;
|
||||
$this->doConfirm($user, $ipAddress);
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ class UserConfirmation
|
||||
public function sendConfirmation(UserRegistration $event)
|
||||
{
|
||||
$user = $event->user;
|
||||
$ipAddress = $event->ip;
|
||||
$ipAddress = $event->ipAddress;
|
||||
$this->doConfirm($user, $ipAddress);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user