AuthenticationService

Authenticates a user (currently comparing it through the install tool password, but could be extended)

Internal

only to be used within EXT:install

Table of Contents

Properties

$sessionService  : SessionService
$templatePaths  : TemplatePaths

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

Methods

loginWithPassword()

Checks against a given password

public loginWithPassword(string|null $password, ServerRequestInterface $request) : bool
Parameters
$password : string|null
$request : ServerRequestInterface
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
string

sendEmail()

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
throws
TransportExceptionInterface

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

        
On this page

Search results