Fix token algorithm not being updated

This commit is contained in:
Bubka 2021-10-08 13:42:58 +02:00
parent d329b82a30
commit 0f34736e4e

View File

@ -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);