FrontendUserRepository

Internal

this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.

Table of Contents

Properties

$connection  : Connection
$context  : Context

Methods

__construct()  : mixed
existsUserWithHash()  : bool
Returns true if a user exists with hash as `felogin_forgothash`, otherwise false.
findOneByForgotPasswordHash()  : array<string|int, mixed>|null
findRedirectIdPageByUserId()  : int|null
findUserByUsernameOrEmailOnPages()  : array<string|int, mixed>|null
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.
updateForgotHashForUserByUid()  : void
Sets forgot hash for passed user uid.
updatePasswordAndInvalidateHash()  : void
Change the password for a user based on forgot password hash.

Properties

Methods

existsUserWithHash()

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

public existsUserWithHash(string $hash) : bool
Parameters
$hash : string
Return values
bool

findOneByForgotPasswordHash()

public findOneByForgotPasswordHash(string $hash) : array<string|int, mixed>|null
Parameters
$hash : string
Return values
array<string|int, mixed>|null

findRedirectIdPageByUserId()

public findRedirectIdPageByUserId(int $uid) : int|null
Parameters
$uid : int
Return values
int|null

findUserByUsernameOrEmailOnPages()

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.

public findUserByUsernameOrEmailOnPages(string $usernameOrEmail[, array<string|int, mixed> $pages = [] ]) : array<string|int, mixed>|null
Parameters
$usernameOrEmail : string
$pages : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

updateForgotHashForUserByUid()

Sets forgot hash for passed user uid.

public updateForgotHashForUserByUid(int $uid, string $hash) : void
Parameters
$uid : int
$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

        
On this page

Search results