52 $this->selector = uniqid(
'',
true);
53 $this->hashedValidator = \bin2hex(\random_bytes(20));
99 $this->expires = $d->modify($duration);
103 return $this->expires->getTimestamp() < (new \DateTime())->getTimestamp();
107 return \hash_equals($this->hashedValidator, $validator);
Ubiquity\security\auth\models$AbstractAuthtokens This class is part of Ubiquity.
$selector
@column("name"=>"selector","nullable"=>false,"dbType"=>"char(24)") @validator("length",...
$hashedValidator
@column("name"=>"hashedValidator","nullable"=>false,"dbType"=>"char(64)") @validator("length",...
setHashedValidator($hashedValidator)
$expires
@column("name"=>"expires","nullable"=>true,"dbType"=>"datetime") @validator("type",...
$userid
@column("name"=>"userid","nullable"=>false,"dbType"=>"int(11)") @validator("notNull")
$id
@id @column("name"=>"id","nullable"=>false,"dbType"=>"int(11)") @validator("id","constraints"=>array(...
checkValidator($validator)