‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\MfaAjaxController Class Reference

Public Member Functions

 __construct (MfaProviderRegistry $mfaProviderRegistry)
 
 handleRequest (ServerRequestInterface $request)
 

Protected Member Functions

 deactivateAction (ServerRequestInterface $request, AbstractUserAuthentication $user)
 
 initializeUser (int $userId, string $tableName)
 
 getResponseData (bool $success, string $message, ?AbstractUserAuthentication $user=null)
 
 isAllowedToPerformAction (string $action, AbstractUserAuthentication $user)
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

MfaProviderRegistry $mfaProviderRegistry
 

Private Attributes

const ALLOWED_ACTIONS = ['deactivate']
 

Detailed Description

Controller to manipulate MFA providers via AJAX in the backend

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 40 of file MfaAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\MfaAjaxController::__construct ( MfaProviderRegistry  $mfaProviderRegistry)

Member Function Documentation

◆ deactivateAction()

TYPO3\CMS\Backend\Controller\MfaAjaxController::deactivateAction ( ServerRequestInterface  $request,
AbstractUserAuthentication  $user 
)
protected

◆ getBackendUser()

TYPO3\CMS\Backend\Controller\MfaAjaxController::getBackendUser ( )
protected

◆ getLanguageService()

TYPO3\CMS\Backend\Controller\MfaAjaxController::getLanguageService ( )
protected

◆ getResponseData()

TYPO3\CMS\Backend\Controller\MfaAjaxController::getResponseData ( bool  $success,
string  $message,
?AbstractUserAuthentication  $user = null 
)
protected

◆ handleRequest()

TYPO3\CMS\Backend\Controller\MfaAjaxController::handleRequest ( ServerRequestInterface  $request)

◆ initializeUser()

TYPO3\CMS\Backend\Controller\MfaAjaxController::initializeUser ( int  $userId,
string  $tableName 
)
protected

Initialize a user based on the table name

Definition at line 145 of file MfaAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\MfaAjaxController\handleRequest().

◆ isAllowedToPerformAction()

TYPO3\CMS\Backend\Controller\MfaAjaxController::isAllowedToPerformAction ( string  $action,
AbstractUserAuthentication  $user 
)
protected

Check if the current logged in user is allowed to perform the requested action on the selected user.

Definition at line 185 of file MfaAjaxController.php.

References TYPO3\CMS\Backend\Controller\MfaAjaxController\getBackendUser().

Referenced by TYPO3\CMS\Backend\Controller\MfaAjaxController\handleRequest().

Member Data Documentation

◆ $mfaProviderRegistry

MfaProviderRegistry TYPO3\CMS\Backend\Controller\MfaAjaxController::$mfaProviderRegistry
protected

◆ ALLOWED_ACTIONS

const TYPO3\CMS\Backend\Controller\MfaAjaxController::ALLOWED_ACTIONS = ['deactivate']
private

Definition at line 42 of file MfaAjaxController.php.