mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Report IP address
This commit is contained in:
@@ -180,10 +180,11 @@ class AuthController extends Controller
|
||||
if (Auth::user() instanceof User) {
|
||||
$email = Auth::user()->email;
|
||||
$address = route('index');
|
||||
$ipAddress = $request->ip();
|
||||
// send email.
|
||||
try {
|
||||
Mail::send(
|
||||
['emails.registered-html', 'emails.registered'], ['address' => $address], function (Message $message) use ($email) {
|
||||
['emails.registered-html', 'emails.registered'], ['address' => $address, 'ip' => $ipAddress], function (Message $message) use ($email) {
|
||||
$message->to($email, $email)->subject('Welcome to Firefly III! ');
|
||||
}
|
||||
);
|
||||
|
@@ -36,6 +36,10 @@
|
||||
Enjoy!
|
||||
</p>
|
||||
|
||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:11px;color:#aaa;">
|
||||
The registration has been created from IP {{ ip }}
|
||||
</p>
|
||||
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
@@ -17,3 +17,5 @@ Password reset:
|
||||
Documentation:
|
||||
https://github.com/JC5/firefly-iii/wiki/First-use
|
||||
https://github.com/JC5/firefly-iii/wiki/full-description
|
||||
|
||||
The registration has been created from IP {{ ip }}
|
Reference in New Issue
Block a user