mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-23 00:33:18 +01:00
Fix token algorithm not being updated
This commit is contained in:
parent
d329b82a30
commit
0f34736e4e
@ -346,7 +346,7 @@ private function initTokenWithParameters(TwoFAccountDto $dto) : void
|
||||
if ($dto->counter) $this->token->setParameter('counter', $dto->counter);
|
||||
}
|
||||
|
||||
if ($dto->algorithm) $this->token->setParameter('digest', $dto->algorithm);
|
||||
if ($dto->algorithm) $this->token->setParameter('algorithm', $dto->algorithm);
|
||||
if ($dto->digits) $this->token->setParameter('digits', $dto->digits);
|
||||
// if ($dto->epoch) $this->token->setParameter('epoch', $dto->epoch);
|
||||
if ($dto->service) $this->token->setIssuer($dto->service);
|
||||
|
Loading…
Reference in New Issue
Block a user