AuthenticationService
Authenticates a user (currently comparing it through the install tool password, but could be extended)
only to be used within EXT:install
Table of Contents
Properties
Methods
- __construct() : mixed
- loginWithPassword() : bool
- Checks against a given password
- getSenderEmailAddress() : string
- Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty fall back to 'no-reply@example.com'
- getSenderEmailName() : string
- Gets sender name from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'] If this setting is empty, it falls back to a default string.
- sendEmail() : void
- Sends an email and gracefully logs if the mail could not be sent due to configuration errors.
- sendLoginFailedMail() : mixed
- If install tool login mail is set, send a mail for a failed login.
- sendLoginSuccessfulMail() : mixed
- If install tool login mail is set, send a mail for a successful login.
Properties
$mailer read-only
protected
MailerInterface
$mailer
$templatePaths
protected
TemplatePaths
$templatePaths
Methods
__construct()
public
__construct(MailerInterface $mailer) : mixed
Parameters
- $mailer : MailerInterface
loginWithPassword()
Checks against a given password
public
loginWithPassword(string|null $password, ServerRequestInterface $request, SessionService $session) : bool
Parameters
- $password : string|null
- $request : ServerRequestInterface
- $session : SessionService
Return values
bool —if authentication was successful, otherwise false
getSenderEmailAddress()
Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty fall back to 'no-reply@example.com'
protected
getSenderEmailAddress() : string
Return values
string —Returns an email address
getSenderEmailName()
Gets sender name from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'] If this setting is empty, it falls back to a default string.
protected
getSenderEmailName() : string
Return values
stringsendEmail()
Sends an email and gracefully logs if the mail could not be sent due to configuration errors.
protected
sendEmail(RawMessage $email) : void
Parameters
- $email : RawMessage
Tags
sendLoginFailedMail()
If install tool login mail is set, send a mail for a failed login.
protected
sendLoginFailedMail(ServerRequestInterface $request) : mixed
Parameters
- $request : ServerRequestInterface
sendLoginSuccessfulMail()
If install tool login mail is set, send a mail for a successful login.
protected
sendLoginSuccessfulMail(ServerRequestInterface $request) : mixed
Parameters
- $request : ServerRequestInterface