Skip to content

Commit

Permalink
Fix for limiting logins list length (lonnieezell#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgvirtual authored May 19, 2024
1 parent 91dd6ff commit b892532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Users/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function security(int $userId)

/** @var LoginModel $loginModel */
$loginModel = model(LoginModel::class);
$logins = $loginModel->where('identifier', $user->email)->orderBy('date', 'desc')->limit(20)->findAll();
$logins = $loginModel->where('identifier', $user->email)->orderBy('date', 'desc')->findAll(20);

return $this->render($this->viewPrefix . 'security', [
'user' => $user,
Expand Down

0 comments on commit b892532

Please sign in to comment.