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