FrontendUserRepository
this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.
Table of Contents
Properties
Methods
- __construct() : mixed
- existsUserWithHash() : bool
- Returns true if an user exists with hash as `felogin_forgothash`, otherwise false.
- fetchUserInformationByEmail() : array<string|int, mixed>
- Fetches array containing uid, username, email, first_name, middle_name & last_name by email or empty array if user was not found.
- findEmailByUsernameOrEmailOnPages() : string|null
- findOneByForgotPasswordHash() : array<string|int, mixed>|null
- findRedirectIdPageByUserId() : int|null
- getTable() : string
- updateForgotHashForUserByEmail() : void
- Sets forgot hash for passed email address.
- updatePasswordAndInvalidateHash() : void
- Change the password for a user based on forgot password hash.
Properties
$connection
protected
Connection
$connection
$context
protected
Context
$context
$userService
protected
UserService
$userService
Methods
__construct()
public
__construct(UserService $userService, Context $context) : mixed
Parameters
- $userService : UserService
- $context : Context
existsUserWithHash()
Returns true if an user exists with hash as `felogin_forgothash`, otherwise false.
public
existsUserWithHash(string $hash) : bool
Parameters
- $hash : string
Return values
boolfetchUserInformationByEmail()
Fetches array containing uid, username, email, first_name, middle_name & last_name by email or empty array if user was not found.
public
fetchUserInformationByEmail(string $emailAddress) : array<string|int, mixed>
Parameters
- $emailAddress : string
Return values
array<string|int, mixed>findEmailByUsernameOrEmailOnPages()
public
findEmailByUsernameOrEmailOnPages(string $usernameOrEmail[, array<string|int, mixed> $pages = [] ]) : string|null
Parameters
- $usernameOrEmail : string
- $pages : array<string|int, mixed> = []
Return values
string|nullfindOneByForgotPasswordHash()
public
findOneByForgotPasswordHash(string $hash) : array<string|int, mixed>|null
Parameters
- $hash : string
Return values
array<string|int, mixed>|nullfindRedirectIdPageByUserId()
public
findRedirectIdPageByUserId(int $uid) : int|null
Parameters
- $uid : int
Return values
int|nullgetTable()
public
getTable() : string
Return values
stringupdateForgotHashForUserByEmail()
Sets forgot hash for passed email address.
public
updateForgotHashForUserByEmail(string $emailAddress, string $hash) : void
Parameters
- $emailAddress : string
- $hash : string
updatePasswordAndInvalidateHash()
Change the password for a user based on forgot password hash.
public
updatePasswordAndInvalidateHash(string $forgotPasswordHash, string $hashedPassword) : void
Parameters
- $forgotPasswordHash : string
- $hashedPassword : string