‪TYPO3CMS  ‪main
TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController Class Reference
Inheritance diagram for TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 __construct (protected RecoveryService $recoveryService, protected FrontendUserRepository $userRepository, protected RecoveryConfiguration $recoveryConfiguration, protected readonly Features $features, protected readonly PageRepository $pageRepository)
 
 recoveryAction (string $userIdentifier=null)
 
 showChangePasswordAction (string $hash='')
 
 validateHashAndPasswords ()
 
 changePasswordAction (string $newPass, string $hash)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
 processRequest (RequestInterface $request)
 
 addFlashMessage (string $messageBody, string $messageTitle='', ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::OK, bool $storeInSession=true)
 
 throwStatus (int $statusCode, string $statusMessage='', ?string $content=null)
 

Protected Member Functions

 validateHashArgument ()
 
 validateNewPassword (Result $originalResult)
 
 getTranslation (string $key)
 
 validateHashFormat (string $hash)
 
 exposeNoneExistentUser (?array $user)
 
 invalidateUserSessions (int $userId)
 
 getPasswordPolicyValidator ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeAction ()
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest (RequestInterface $request)
 
 resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
 resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
 errorAction ()
 
 addErrorFlashMessage ()
 
 getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
 getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (string $identifier=null)
 
 redirect (?string $actionName, ?string $controllerName=null, ?string $extensionName=null, ?array $arguments=null, ?int $pageUid=null, $_=null, int $statusCode=303)
 
 redirectToUri (string|UriInterface $uri, $_=null, int $statusCode=303)
 
 addBaseUriIfNecessary (string $uri)
 
 mapRequestArgumentsToControllerArguments ()
 
 htmlResponse (string $html=null)
 
 jsonResponse (string $json=null)
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
HashService $hashService
 
ReflectionService $reflectionService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
RequestInterface $request
 
UriBuilder $uriBuilder
 
array $settings
 
ValidatorResolver $validatorResolver
 
Arguments $arguments
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.

Definition at line 49 of file PasswordRecoveryController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::__construct ( protected RecoveryService  $recoveryService,
protected FrontendUserRepository  $userRepository,
protected RecoveryConfiguration  $recoveryConfiguration,
protected readonly Features  $features,
protected readonly PageRepository  $pageRepository 
)

Definition at line 51 of file PasswordRecoveryController.php.

Member Function Documentation

◆ changePasswordAction()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::changePasswordAction ( string  $newPass,
string  $hash 
)

◆ exposeNoneExistentUser()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::exposeNoneExistentUser ( ?array  $user)
protected

Returns whether the exposeNonexistentUserInForgotPasswordDialog setting is active or not

Definition at line 285 of file PasswordRecoveryController.php.

Referenced by TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\recoveryAction().

◆ getPasswordPolicyValidator()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::getPasswordPolicyValidator ( )
protected

◆ getTranslation()

◆ invalidateUserSessions()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::invalidateUserSessions ( int  $userId)
protected

Invalidate all frontend user sessions by given user id

Definition at line 299 of file PasswordRecoveryController.php.

Referenced by TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\changePasswordAction().

◆ recoveryAction()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::recoveryAction ( string  $userIdentifier = null)

◆ showChangePasswordAction()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::showChangePasswordAction ( string  $hash = '')

◆ validateHashAndPasswords()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::validateHashAndPasswords ( )

Validates the hash argument, the entered password and passwordRepeat values. If one of the values is considered as invalid, a response object with validation errors in the mapping results is returned.

Exceptions
NoSuchArgumentException

Definition at line 157 of file PasswordRecoveryController.php.

References TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\getTranslation(), TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\validateHashArgument(), and TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\validateNewPassword().

Referenced by TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\changePasswordAction().

◆ validateHashArgument()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::validateHashArgument ( )
protected

◆ validateHashFormat()

TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::validateHashFormat ( string  $hash)
protected

Validates that $hash is in the expected format (timestamp|forgot_hash)

Definition at line 277 of file PasswordRecoveryController.php.

Referenced by TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController\validateHashArgument().

◆ validateNewPassword()