Log in
Model

UserConfig

Magento\TwoFactorAuth\Model\ResourceModel\UserConfig

What it does

This resource model manages database operations for two-factor authentication user configurations.

It automatically encrypts sensitive config data before saving to the database and decrypts it when loading, ensuring secure storage of 2FA settings like provider configurations and user-specific authentication data.

Developers use this indirectly through the UserConfig model when managing user 2FA preferences.

Public Methods

  • _afterLoad()
  • _beforeSave()