for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Teampass - a collaborative passwords manager.
* ---
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @project Teampass
* @version API
* @file UserModel.php
* @author Nils Laumaillé ([email protected])
* @copyright 2009-2025 Teampass.net
* @license https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0
* @see https://www.teampass.net
*/
class UserModel
{
public function getUsers($limit)
return DB::query(
'SELECT *
FROM ' . prefixTable('users') . '
ORDER BY id ASC LIMIT %i',
$limit
);
}