MfaAjaxController

class \TYPO3\CMS\Backend\Controller\MfaAjaxController

Controller to manipulate MFA providers via AJAX in the backend

Attributes

#[AsController]

Table of Contents

Properties

$mfaProviderRegistry  : MfaProviderRegistry

Methods

__construct()  : mixed
handleRequest()  : ResponseInterface
Main entry point, checking prerequisite and dispatching to the requested action
deactivateAction()  : array
Deactivate MFA providers If the request contains a provider, it will be deactivated.
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getResponseData()  : array
Prepare response data for a JSON response
initializeUser()  : AbstractUserAuthentication
Initialize a user based on the table name
isAllowedToPerformAction()  : bool
Check if the current logged in user is allowed to perform the requested action on the selected user.

Properties

Methods

handleRequest()

Main entry point, checking prerequisite and dispatching to the requested action

public handleRequest(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

deactivateAction()

Deactivate MFA providers If the request contains a provider, it will be deactivated.

protected deactivateAction(ServerRequestInterface $request, AbstractUserAuthentication $user) : array

Otherwise all active providers are deactivated.

Parameters

$request : ServerRequestInterface
$user : AbstractUserAuthentication

Return values

array

isAllowedToPerformAction()

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

protected isAllowedToPerformAction(string $action, AbstractUserAuthentication $user) : bool

Parameters

$action : string
$user : AbstractUserAuthentication

Return values

bool
On this page