Skip to content

Commit

Permalink
Remove the IP address from being recorded (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Jun 4, 2021
1 parent 9b2e466 commit db532e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ protected function sendLoginResponse(Request $request)
{
$user = Auth::user();

$user->last_ip = $request->ip();
$user->save();

if ($user->state !== UserState::ACTIVE && $user->state !== UserState::ON_LEAVE) {
Log::info('Trying to login '.$user->ident.', state '
.UserState::label($user->state));
Expand Down
4 changes: 0 additions & 4 deletions resources/views/admin/users/fields.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@
<td>Flight Time</td>
<td>@minutestotime($user->flight_time)</td>
</tr>
<tr>
<td>IP Address</td>
<td>{{ $user->last_ip }}</td>
</tr>
<tr>
<td>Registered On</td>
<td>{{ show_datetime($user->created_at) }}</td>
Expand Down

0 comments on commit db532e0

Please sign in to comment.