AuthAttemptCollection
extends BaseCollection
in package
Class AuthAttemptCollection
Table of Contents
- $objectType : string
- __construct() : mixed
- deleteByName() : void
- findByNameAndBeforeTime() : AuthAttemptEntity|null
- incrementPasswordAttemptCountById() : void
- resetPasswordAttemptCountById() : void
Properties
$objectType
protected
string
$objectType
= \Airlay\Library\Entities\AuthAttemptEntity::class
Methods
__construct()
public
__construct() : mixed
Return values
mixed —deleteByName()
public
deleteByName(string $name) : void
Parameters
- $name : string
Return values
void —findByNameAndBeforeTime()
public
findByNameAndBeforeTime(string $name, int $time) : AuthAttemptEntity|null
Parameters
- $name : string
- $time : int
Return values
AuthAttemptEntity|null —incrementPasswordAttemptCountById()
public
incrementPasswordAttemptCountById(ObjectId $id) : void
Parameters
- $id : ObjectId
Return values
void —resetPasswordAttemptCountById()
public
resetPasswordAttemptCountById(ObjectId $id, int $canLoginAfter) : void
Parameters
- $id : ObjectId
- $canLoginAfter : int