diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php index 7837cda91..f4eff803a 100644 --- a/src/Controller/UsersController.php +++ b/src/Controller/UsersController.php @@ -62,8 +62,14 @@ class UsersController extends AppController $newAccountsTree[$created->year][$created->month]['count'] += intval($entry['count']); } + // last 5 new users + $lastUsers = $this->Users->find('all')->order(['created DESC'])->limit(5); + $timeUsed = microtime(true) - $startTime; - $this->set(compact('users', 'newUsersThisMonth', 'newUsersLastMonth', 'timeUsed', 'newAccountsTree')); + + $this->set(compact( + 'users', 'newUsersThisMonth', 'newUsersLastMonth', + 'timeUsed', 'newAccountsTree', 'lastUsers')); } /** diff --git a/src/Template/Dashboard/index.ctp b/src/Template/Dashboard/index.ctp index b3fc19bc2..c457bb06d 100644 --- a/src/Template/Dashboard/index.ctp +++ b/src/Template/Dashboard/index.ctp @@ -33,9 +33,12 @@ $this->assign('title', __('Willkommen') . ' ' . $user['first_name'] . '&nbs