mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-17 02:41:13 +01:00
Rename valid_for property to period
This commit is contained in:
parent
f19fb0adad
commit
52f9867fee
@ -14,7 +14,7 @@ class OtpDto
|
||||
public ?int $generated_at;
|
||||
|
||||
/* @var integer */
|
||||
public ?int $valid_for;
|
||||
public ?int $period;
|
||||
|
||||
/* @var integer */
|
||||
public ?int $counter;
|
||||
|
@ -134,7 +134,7 @@ public function getOTP($data) : OtpDto
|
||||
$OtpDto->generated_at = time();
|
||||
$OtpDto->otp_type = 'totp';
|
||||
$OtpDto->password = $this->token->at($OtpDto->generated_at);
|
||||
$OtpDto->valid_for = $this->token->getParameter('period');
|
||||
$OtpDto->period = $this->token->getParameter('period');
|
||||
}
|
||||
else if ( $this->tokenOtpType() === 'hotp' ) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user