diff --git a/app/Http/Controllers/Api/ApiV1Dot1Controller.php b/app/Http/Controllers/Api/ApiV1Dot1Controller.php index 66474e145..7dff38cbc 100644 --- a/app/Http/Controllers/Api/ApiV1Dot1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Dot1Controller.php @@ -265,6 +265,7 @@ class ApiV1Dot1Controller extends Controller $activity = AccountLog::whereUserId($user->id) ->whereAction('auth.login') ->orderBy('created_at', 'desc') + ->groupBy('ip_address') ->limit(10) ->get() ->map(function($item) use($agent, $currentIp) {