‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Security\EmailLoginNotification Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Security\EmailLoginNotification:

Public Member Functions

 __construct (private readonly MailerInterface $mailer)
 
 emailAtLogin (AfterUserLoggedInEvent $event)
 

Protected Member Functions

 sendEmail (string $recipient, AbstractUserAuthentication $user, ?string $subjectPrefix=null)
 

Private Attributes

int $warningMode = 0
 
string $warningEmailRecipient = ''
 
ServerRequestInterface $request
 

Detailed Description

Sends out an email if a backend user has just been logged in.

Relevant settings: $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_mode'] $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'] $BE_USER->uc['emailMeAtLogin']

this is not part of TYPO3 API as this is an internal hook

Definition at line 44 of file EmailLoginNotification.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Security\EmailLoginNotification::__construct ( private readonly MailerInterface  $mailer)

Definition at line 55 of file EmailLoginNotification.php.

References $GLOBALS.

Member Function Documentation

◆ emailAtLogin()

TYPO3\CMS\Backend\Security\EmailLoginNotification::emailAtLogin ( AfterUserLoggedInEvent  $event)

◆ sendEmail()

TYPO3\CMS\Backend\Security\EmailLoginNotification::sendEmail ( string  $recipient,
AbstractUserAuthentication  $user,
?string  $subjectPrefix = null 
)
protected

Sends an email.

Definition at line 99 of file EmailLoginNotification.php.

Referenced by TYPO3\CMS\Backend\Security\EmailLoginNotification\emailAtLogin().

Member Data Documentation

◆ $request

ServerRequestInterface TYPO3\CMS\Backend\Security\EmailLoginNotification::$request
private

Definition at line 53 of file EmailLoginNotification.php.

◆ $warningEmailRecipient

string TYPO3\CMS\Backend\Security\EmailLoginNotification::$warningEmailRecipient = ''
private

Definition at line 49 of file EmailLoginNotification.php.

◆ $warningMode

int TYPO3\CMS\Backend\Security\EmailLoginNotification::$warningMode = 0
private

Definition at line 48 of file EmailLoginNotification.php.