ResetPasswordController uses PageRendererBackendSetupTrait
Controller responsible for rendering and processing backend user password reset requests.
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $authenticationStyleInformation : AuthenticationStyleInformation
- $backendViewFactory : BackendViewFactory
- $context : Context
- $extensionConfiguration : ExtensionConfiguration
- $features : Features
- $locales : Locales
- $loginProvider : string
- $pageRenderer : PageRenderer
- $passwordReset : PasswordReset
- $typo3Information : Typo3Information
- $uriBuilder : UriBuilder
- $view : ViewInterface
Methods
- __construct() : mixed
- forgetPasswordFormAction() : ResponseInterface
- Show a form to enter an email address to request a password reset email.
- initiatePasswordResetAction() : ResponseInterface
- Validate the email address.
- passwordResetAction() : ResponseInterface
- Validates the link and show a form to enter the new password.
- passwordResetFinishAction() : ResponseInterface
- Updates the password in the database.
- getBackendFavicon() : string
- Retrieves configured favicon for backend with fallback.
- getBackendUserAuthentication() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getNormalizedParams() : NormalizedParams
- getPasswordRequirements() : array<string|int, mixed>
- getUriForFileName() : string
- Returns the uri of a relative reference, resolves the "EXT:" prefix (way of referring to files inside extensions) and checks that the file is inside the project root of the TYPO3 installation
- initialize() : void
- initializeForgetPasswordView() : void
- initializeResetPasswordView() : void
- loadStylesheets() : void
- Load all registered stylesheets from $GLOBALS['TYPO3_CONF_VARS']['BE']['stylesheets']
- provideCustomLoginStyling() : void
- setUpBasicPageRendererForBackend() : void
- Sets mandatory parameters for the PageRenderer.
Properties
$authenticationStyleInformation read-only
protected
AuthenticationStyleInformation
$authenticationStyleInformation
$backendViewFactory read-only
protected
BackendViewFactory
$backendViewFactory
$context read-only
protected
Context
$context
$extensionConfiguration read-only
protected
ExtensionConfiguration
$extensionConfiguration
$features read-only
protected
Features
$features
$locales read-only
protected
Locales
$locales
$loginProvider
protected
string
$loginProvider
= ''
$pageRenderer read-only
protected
PageRenderer
$pageRenderer
$passwordReset read-only
protected
PasswordReset
$passwordReset
$typo3Information read-only
protected
Typo3Information
$typo3Information
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
$view
protected
ViewInterface
$view
Methods
__construct()
public
__construct(Context $context, Locales $locales, Features $features, UriBuilder $uriBuilder, PageRenderer $pageRenderer, PasswordReset $passwordReset, Typo3Information $typo3Information, AuthenticationStyleInformation $authenticationStyleInformation, ExtensionConfiguration $extensionConfiguration, BackendViewFactory $backendViewFactory) : mixed
Parameters
- $context : Context
- $locales : Locales
- $features : Features
- $uriBuilder : UriBuilder
- $pageRenderer : PageRenderer
- $passwordReset : PasswordReset
- $typo3Information : Typo3Information
- $authenticationStyleInformation : AuthenticationStyleInformation
- $extensionConfiguration : ExtensionConfiguration
- $backendViewFactory : BackendViewFactory
forgetPasswordFormAction()
Show a form to enter an email address to request a password reset email.
public
forgetPasswordFormAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceinitiatePasswordResetAction()
Validate the email address.
public
initiatePasswordResetAction(ServerRequestInterface $request) : ResponseInterface
Restricted to POST method in Configuration/Backend/Routes.php
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacepasswordResetAction()
Validates the link and show a form to enter the new password.
public
passwordResetAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacepasswordResetFinishAction()
Updates the password in the database.
public
passwordResetFinishAction(ServerRequestInterface $request) : ResponseInterface
Restricted to POST method in Configuration/Backend/Routes.php
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetBackendFavicon()
Retrieves configured favicon for backend with fallback.
protected
getBackendFavicon(ExtensionConfiguration $extensionConfiguration, ServerRequestInterface $request) : string
Parameters
- $extensionConfiguration : ExtensionConfiguration
- $request : ServerRequestInterface
Return values
stringgetBackendUserAuthentication()
protected
getBackendUserAuthentication() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetNormalizedParams()
protected
getNormalizedParams(ServerRequestInterface $request) : NormalizedParams
Parameters
- $request : ServerRequestInterface
Return values
NormalizedParamsgetPasswordRequirements()
protected
getPasswordRequirements() : array<string|int, mixed>
Return values
array<string|int, mixed>getUriForFileName()
Returns the uri of a relative reference, resolves the "EXT:" prefix (way of referring to files inside extensions) and checks that the file is inside the project root of the TYPO3 installation
protected
getUriForFileName(ServerRequestInterface $request, string $filename) : string
Parameters
- $request : ServerRequestInterface
- $filename : string
-
The input filename/filepath to evaluate
Return values
string —Returns the filename of $filename if valid, otherwise blank string.
initialize()
protected
initialize(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
initializeForgetPasswordView()
protected
initializeForgetPasswordView(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
initializeResetPasswordView()
protected
initializeResetPasswordView(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
loadStylesheets()
Load all registered stylesheets from $GLOBALS['TYPO3_CONF_VARS']['BE']['stylesheets']
protected
loadStylesheets(PageRenderer $pageRenderer) : void
Parameters
- $pageRenderer : PageRenderer
provideCustomLoginStyling()
protected
provideCustomLoginStyling() : void
setUpBasicPageRendererForBackend()
Sets mandatory parameters for the PageRenderer.
protected
setUpBasicPageRendererForBackend(PageRenderer $pageRenderer, ExtensionConfiguration $extensionConfiguration, ServerRequestInterface $request, LanguageService $languageService) : void
Parameters
- $pageRenderer : PageRenderer
- $extensionConfiguration : ExtensionConfiguration
- $request : ServerRequestInterface
- $languageService : LanguageService