DbUserMfaRepository
final class DbUserMfaRepository implements UserMfaRepositoryInterface (View source)
SQL persistence for per-user MFA settings in the user_mfa table.
Methods
__construct(PDO $db, ConfigurationInterface $config, LoggerInterface|null $logger = null)
No description
UserMfa|null
findByUserId(int $userId)
Find MFA settings by user ID
array
findAllEnabled()
Get all users with MFA enabled
Details
__construct(PDO $db, ConfigurationInterface $config, LoggerInterface|null $logger = null)
No description
UserMfa|null
findByUserId(int $userId)
Find MFA settings by user ID
UserMfa|null
findById(int $id)
Find MFA settings by ID
bool
delete(UserMfa $userMfa)
Delete MFA settings
array
findAllEnabled()
Get all users with MFA enabled