‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Command\ResetPasswordCommand Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Command\ResetPasswordCommand:

Public Member Functions

 __construct (Context $context, PasswordReset $passwordReset)
 

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
ServerRequestInterface createFakeWebRequest (string $backendUrl)
 
 simulateEnvironmentForBackendEntryPoint ()
 

Private Attributes

Context $context
 
PasswordReset $passwordReset
 

Detailed Description

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

Definition at line 38 of file ResetPasswordCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Command\ResetPasswordCommand::__construct ( Context  $context,
PasswordReset  $passwordReset 
)

Member Function Documentation

◆ configure()

TYPO3\CMS\Backend\Command\ResetPasswordCommand::configure ( )
protected

Configure the command by defining the name, options and arguments

Definition at line 58 of file ResetPasswordCommand.php.

◆ createFakeWebRequest()

◆ execute()

TYPO3\CMS\Backend\Command\ResetPasswordCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

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

@inheritDoc

Definition at line 76 of file ResetPasswordCommand.php.

References $GLOBALS, $output, TYPO3\CMS\Backend\Command\ResetPasswordCommand\createFakeWebRequest(), and TYPO3\CMS\Core\Utility\GeneralUtility\isValidUrl().

◆ simulateEnvironmentForBackendEntryPoint()

Member Data Documentation

◆ $context

Context TYPO3\CMS\Backend\Command\ResetPasswordCommand::$context
private

◆ $passwordReset

PasswordReset TYPO3\CMS\Backend\Command\ResetPasswordCommand::$passwordReset
private