PasswordHistoryService
extends AirlayService
in package
Class AirlayService
Table of Contents
- $ : AirlayConfig
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- getCollection() : mixed
- savePasswordHistory() : void
- wasPasswordUsed() : bool
Properties
$
public
AirlayConfig
$
config
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —getCollection()
public
getCollection() : mixed
Return values
mixed —savePasswordHistory()
public
savePasswordHistory(ObjectId $userId, string $passwordHash) : void
Parameters
- $userId : ObjectId
- $passwordHash : string
Return values
void —wasPasswordUsed()
public
wasPasswordUsed(ObjectId $userId, string $password) : bool
Parameters
- $userId : ObjectId
- $password : string