Added user property to enforce 2fa or not

This commit is contained in:
Frank Schubert
2024-02-09 18:09:02 +01:00
parent c8bd553505
commit fc260c996d
5 changed files with 57 additions and 3 deletions

View File

@@ -7,6 +7,10 @@ class UserModel
public $password = null;
public $name = null;
public $email = null;
public $mobile;
public $twofactor;
public $twofactorcode;
public $twofactortimestamp;
public $apikey = null;
public $ip = null;
public $sessionid = null;
@@ -67,7 +71,7 @@ class UserModel
}
public static function search($filter)
public static function search($filter = [])
{
$items = [];
$db = FronkDB::singleton();