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

Public Member Functions

 __construct ()
 
 emailAtLogin (array $parameters, BackendUserAuthentication $currentUser)
 

Protected Member Functions

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

Private Attributes

int $warningMode
 
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 42 of file EmailLoginNotification.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Security\EmailLoginNotification::__construct ( )

Definition at line 58 of file EmailLoginNotification.php.

References $GLOBALS.

Member Function Documentation

◆ emailAtLogin()

TYPO3\CMS\Backend\Security\EmailLoginNotification::emailAtLogin ( array  $parameters,
BackendUserAuthentication  $currentUser 
)

Sends an email notification to warning_email_address and/or the logged-in user's email address.

Parameters
array$parameters‪array data
BackendUserAuthentication$currentUser‪the currently just-logged in user

Definition at line 70 of file EmailLoginNotification.php.

References $GLOBALS, TYPO3\CMS\Core\Http\ServerRequestFactory\fromGlobals(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isAdmin(), and TYPO3\CMS\Backend\Security\EmailLoginNotification\sendEmail().

◆ sendEmail()

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

Sends an email.

Parameters
string$recipient
AbstractUserAuthentication$user
string | null$subjectPrefix

Definition at line 98 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 56 of file EmailLoginNotification.php.

◆ $warningEmailRecipient

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

Definition at line 52 of file EmailLoginNotification.php.

◆ $warningMode

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

Definition at line 48 of file EmailLoginNotification.php.