Welcome to mirror list, hosted at ThFree Co, Russian Federation.

RecoveryCodeStaticGenerator.php « Dao « TwoFactorAuth « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4512656dd2aaa1e667f73f182fe52f3dff578eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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');
    }
}