‪TYPO3CMS  ‪main
TYPO3\CMS\FrontendLogin\Service\RecoveryService Class Reference

Public Member Functions

 __construct (protected readonly MailerInterface $mailer, protected EventDispatcherInterface $eventDispatcher, ConfigurationManagerInterface $configurationManager, protected RecoveryConfiguration $recoveryConfiguration, protected UriBuilder $uriBuilder)
 
 sendRecoveryEmail (RequestInterface $request, array $userData, string $hash)
 

Protected Member Functions

 getReceiverName (array $userInformation)
 
 prepareMail (RequestInterface $request, Address $receiver, string $hash, array $userData)
 
 getEmailSubject ()
 

Protected Attributes

array $settings
 

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 36 of file RecoveryService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\FrontendLogin\Service\RecoveryService::__construct ( protected readonly MailerInterface  $mailer,
protected EventDispatcherInterface  $eventDispatcher,
ConfigurationManagerInterface  $configurationManager,
protected RecoveryConfiguration  $recoveryConfiguration,
protected UriBuilder  $uriBuilder 
)

Member Function Documentation

◆ getEmailSubject()

TYPO3\CMS\FrontendLogin\Service\RecoveryService::getEmailSubject ( )
protected

◆ getReceiverName()

TYPO3\CMS\FrontendLogin\Service\RecoveryService::getReceiverName ( array  $userInformation)
protected

Get display name from values. Fallback to username if none of the "_name" fields is set.

Definition at line 69 of file RecoveryService.php.

Referenced by TYPO3\CMS\FrontendLogin\Service\RecoveryService\sendRecoveryEmail().

◆ prepareMail()

TYPO3\CMS\FrontendLogin\Service\RecoveryService::prepareMail ( RequestInterface  $request,
Address  $receiver,
string  $hash,
array  $userData 
)
protected

◆ sendRecoveryEmail()

TYPO3\CMS\FrontendLogin\Service\RecoveryService::sendRecoveryEmail ( RequestInterface  $request,
array  $userData,
string  $hash 
)

Sends an email with an absolute link including the given forgot hash to the passed user with instructions to recover the account.

Exceptions
TransportExceptionInterface

Definition at line 56 of file RecoveryService.php.

References TYPO3\CMS\FrontendLogin\Service\RecoveryService\getReceiverName(), and TYPO3\CMS\FrontendLogin\Service\RecoveryService\prepareMail().

Member Data Documentation

◆ $settings

array TYPO3\CMS\FrontendLogin\Service\RecoveryService::$settings
protected

Definition at line 38 of file RecoveryService.php.