_2fa\CMSProfileController
Adds in handling of token creation and validation in the CMS 'My Profile' section
Synopsis
class CMSProfileController
extends CMSProfileController
{
- // members
- private static array $allowed_actions = ;
- // methods
- public Form getEditForm()
- private void addTokenInfo()
- private void addBackupTokenInfo()
- public SS_HTTPResponse regenerate_token()
- public SS_HTTPResponse load_token_data()
- public SS_HTTPResponse verify_and_activate()
- public SS_HTTPResponse verify_and_deactivate()
- public void regenerate_backup_tokens()
Hierarchy
Extends
- SilverStripe\Admin\CMSProfileController
Members
private
- $allowed_actions
Methods
private
- addBackupTokenInfo()
- addTokenInfo() — Undocumented function
public
- getEditForm() — Adds in Two Factor Authentication tab. Tab state changes depending on whether the member has TwoFactor enabled or not
- load_token_data() — Function to allow loading secret/QR code via Ajax
- regenerate_backup_tokens()
- regenerate_token() — This form action may get triggered to manually refresh secret/token when running in 'fixed' token mode (regenerate_on_activation = false)
- verify_and_activate() — Function to allow verification & activation of two-factor-auth via Ajax
- verify_and_deactivate() — Function to allow verification of password & dectivation of two-factor-auth via Ajax