PasswordVerification

readonly class \TYPO3\CMS\Backend\Security\SudoMode\PasswordVerification

Service for either verifying the password of the current backend user session, or the admin tool password (without actually going through the complete authentication process).

Table of Contents

Properties

$passwordHashFactory  : PasswordHashFactory

Methods

__construct()  : mixed
verifyBackendUserPassword()  : bool
Verifies that the provided password is actually correct for current backend user by stepping through the authentication chain in `$GLOBALS['BE_USER]`.
verifyInstallToolPassword()  : bool
Verifies that provided password matches Install Tool password.
getAuthServices()  : Generator<int, object>
Initializes authentication services to be used in a foreach loop

Properties

Methods

verifyBackendUserPassword()

Verifies that the provided password is actually correct for current backend user by stepping through the authentication chain in `$GLOBALS['BE_USER]`.

public verifyBackendUserPassword(string $password, BackendUserAuthentication $backendUser) : bool

Parameters

$password : string
$backendUser : BackendUserAuthentication

Return values

bool

verifyInstallToolPassword()

Verifies that provided password matches Install Tool password.

public verifyInstallToolPassword(string $password) : bool

Parameters

$password : string

Return values

bool

getAuthServices()

Initializes authentication services to be used in a foreach loop

protected getAuthServices(BackendUserAuthentication $backendUser, array $loginData, array $authInfo) : Generator<int, object>

Parameters

$backendUser : BackendUserAuthentication
$loginData : array
$authInfo : array

Return values

Generator<int, object>
On this page