mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-02 05:14:38 +02:00
Fix syntax unsupported by php7.4
This commit is contained in:
parent
3bae868f8b
commit
0345ca86ad
@ -313,8 +313,9 @@ public function setCounterAttribute($value)
|
|||||||
*
|
*
|
||||||
* @throws InvalidSecretException The secret is not a valid base32 encoded string
|
* @throws InvalidSecretException The secret is not a valid base32 encoded string
|
||||||
* @throws UndecipherableException The secret cannot be deciphered
|
* @throws UndecipherableException The secret cannot be deciphered
|
||||||
|
* @return TotpDto|HotpDto
|
||||||
*/
|
*/
|
||||||
public function getOTP() : TotpDto|HotpDto
|
public function getOTP()
|
||||||
{
|
{
|
||||||
Log::info(sprintf('OTP requested for TwoFAccount #%s', $this->id));
|
Log::info(sprintf('OTP requested for TwoFAccount #%s', $this->id));
|
||||||
|
|
||||||
@ -461,7 +462,7 @@ private function enforceAsSteam()
|
|||||||
*/
|
*/
|
||||||
private function getGeneratorOtpType()
|
private function getGeneratorOtpType()
|
||||||
{
|
{
|
||||||
return Arr::get($this->generatorClassMap, $this->generator::class);
|
return Arr::get($this->generatorClassMap, get_class($this->generator));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user