mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 11:47:53 +02:00
Remove useless method parameter
This commit is contained in:
parent
025cfc5e58
commit
923ff04e3c
@ -312,12 +312,8 @@ class TwoFAccountService
|
|||||||
*
|
*
|
||||||
* @param bool $usingUri Whether or not the token should be fed with the account uri
|
* @param bool $usingUri Whether or not the token should be fed with the account uri
|
||||||
*/
|
*/
|
||||||
private function initTokenWithTwoFAccount(TwoFAccount $twofaccount, bool $useLegacyUri = false) : void
|
private function initTokenWithTwoFAccount(TwoFAccount $twofaccount) : void
|
||||||
{
|
{
|
||||||
if ( $useLegacyUri ) {
|
|
||||||
$this->initTokenWithUri($twofaccount->legacy_uri);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$dto = new TwoFAccountDto();
|
$dto = new TwoFAccountDto();
|
||||||
|
|
||||||
$dto->otp_type = $twofaccount->otp_type;
|
$dto->otp_type = $twofaccount->otp_type;
|
||||||
@ -333,7 +329,6 @@ class TwoFAccountService
|
|||||||
|
|
||||||
$this->initTokenWithParameters($dto);
|
$this->initTokenWithParameters($dto);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user