‪TYPO3CMS  ‪main
TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository Class Reference

Public Member Functions

 __construct (protected readonly Context $context, ConnectionPool $connectionPool,)
 
 updatePasswordAndInvalidateHash (string $forgotPasswordHash, string $hashedPassword)
 
 existsUserWithHash (string $hash)
 
 updateForgotHashForUserByUid (int $uid, string $hash)
 
 findUserByUsernameOrEmailOnPages (string $usernameOrEmail, array $pages=[])
 
 findOneByForgotPasswordHash (string $hash)
 
 findRedirectIdPageByUserId (int $uid)
 

Protected Attributes

readonly Connection $connection
 

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 27 of file FrontendUserRepository.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::__construct ( protected readonly Context  $context,
ConnectionPool  $connectionPool 
)

Member Function Documentation

◆ existsUserWithHash()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::existsUserWithHash ( string  $hash)

Returns true if a user exists with hash as felogin_forgothash, otherwise false.

Definition at line 57 of file FrontendUserRepository.php.

◆ findOneByForgotPasswordHash()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::findOneByForgotPasswordHash ( string  $hash)

Definition at line 111 of file FrontendUserRepository.php.

◆ findRedirectIdPageByUserId()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::findRedirectIdPageByUserId ( int  $uid)

◆ findUserByUsernameOrEmailOnPages()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::findUserByUsernameOrEmailOnPages ( string  $usernameOrEmail,
array  $pages = [] 
)

Fetches an array with all columns (except the password) from the fe_users table for the given username or email on the given pages. Returns null, if user was not found or if user has no email address set.

Definition at line 84 of file FrontendUserRepository.php.

◆ updateForgotHashForUserByUid()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::updateForgotHashForUserByUid ( int  $uid,
string  $hash 
)

Sets forgot hash for passed user uid.

Definition at line 70 of file FrontendUserRepository.php.

References TYPO3\CMS\Webhooks\Message\$uid.

◆ updatePasswordAndInvalidateHash()

TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::updatePasswordAndInvalidateHash ( string  $forgotPasswordHash,
string  $hashedPassword 
)

Change the password for a user based on forgot password hash.

Definition at line 41 of file FrontendUserRepository.php.

Member Data Documentation

◆ $connection

readonly Connection TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::$connection
protected

Definition at line 29 of file FrontendUserRepository.php.