]> BookStack Code Mirror - bookstack/blobdiff - app/Auth/UserRepo.php
Fixes for CodeStyle vol.2
[bookstack] / app / Auth / UserRepo.php
index 9faeb8ae27ea4ff4671381df0db1a0e0b7e9f56e..e1a040fc2ceb8850dd52b046556690add64bd606 100644 (file)
@@ -71,6 +71,7 @@ class UserRepo
         $query = User::query()->select(['*'])
             ->withLastActivityAt()
             ->with(['roles', 'avatar'])
+            ->withCount('mfaValues')
             ->orderBy($sort, $sortData['order']);
 
         if ($sortData['search']) {