Leitgedanken/msd2/tracking/piwik/plugins/TwoFactorAuth/Dao/RecoveryCodeStaticGenerator.php
2023-01-23 11:03:31 +01:00

21 lines
419 B
PHP

<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\TwoFactorAuth\Dao;
class RecoveryCodeStaticGenerator extends RecoveryCodeRandomGenerator
{
private $index = 10;
public function generateCode()
{
$this->index++;
return str_pad($this->index, 16, '0');
}
}