ResetPasswordCommand

class \TYPO3\CMS\Backend\Command\ResetPasswordCommand

Extends
Command

Triggers the workflow to request a new password for a user.

Table of Contents

Methods

__construct()  : mixed
configure()  : mixed
Configure the command by defining the name, options and arguments
createFakeWebRequest()  : ServerRequestInterface
This is needed to create a link to the backend properly.
execute()  : int
Executes the command for sending out an email to reset the password.
simulateEnvironmentForBackendEntryPoint()  : array
This is a workaround to use "PublicPath . /typo3/index.php" instead of "publicPath . /typo3/sysext/core/bin/typo3" so the the web root is detected properly in normalizedParams.

Methods

configure()

Configure the command by defining the name, options and arguments

protected configure() : mixed

createFakeWebRequest()

This is needed to create a link to the backend properly.

protected createFakeWebRequest(string $backendUrl) : ServerRequestInterface

Parameters

$backendUrl : string

Return values

ServerRequestInterface

execute()

Executes the command for sending out an email to reset the password.

protected execute(InputInterface $input, OutputInterface $output) : int

Parameters

$input : InputInterface
$output : OutputInterface

Tags

inheritDoc

Return values

int

simulateEnvironmentForBackendEntryPoint()

This is a workaround to use "PublicPath . /typo3/index.php" instead of "publicPath . /typo3/sysext/core/bin/typo3" so the the web root is detected properly in normalizedParams.

protected simulateEnvironmentForBackendEntryPoint() : array

Return values

array
On this page