UserConfigRepository
Magento\TwoFactorAuth\Model\ResourceModel\UserConfigRepository
What it does
This repository class manages CRUD operations for two-factor authentication user configurations in Magento 2.
Developers use this to save, retrieve, delete, or search for 2FA settings associated with admin users, including fetching configurations by user ID or entity ID.
It implements the repository pattern with caching through a registry to optimize database queries.
Public Methods
- save()
- getById()
- getByUserId()
- delete()
- getList()