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

Public Member Functions

 __construct (private readonly Context $context, private readonly PasswordReset $passwordReset)
 

Protected Member Functions

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

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 ( private readonly Context  $context,
private readonly PasswordReset  $passwordReset 
)

Definition at line 40 of file ResetPasswordCommand.php.

Member Function Documentation

◆ configure()

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

Configure the command by defining the name, options and arguments

Definition at line 48 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.

Definition at line 64 of file ResetPasswordCommand.php.

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

◆ simulateEnvironmentForBackendEntryPoint()