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
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
$passwordHashFactory read-only
protected
PasswordHashFactory
$passwordHashFactory
Methods
__construct()
public
__construct(PasswordHashFactory $passwordHashFactory) : mixed
Parameters
- $passwordHashFactory : PasswordHashFactory
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
boolverifyInstallToolPassword()
Verifies that provided password matches Install Tool password.
public
verifyInstallToolPassword(string $password) : bool
Parameters
- $password : string
Return values
boolgetAuthServices()
Initializes authentication services to be used in a foreach loop
protected
getAuthServices(BackendUserAuthentication $backendUser, array<string|int, mixed> $loginData, array<string|int, mixed> $authInfo) : Generator<int, object>
Parameters
- $backendUser : BackendUserAuthentication
- $loginData : array<string|int, mixed>
- $authInfo : array<string|int, mixed>