CakeDC\Users\Controller\Component\GoogleAuthenticatorComponent::initialize PHP Method

initialize() public method

initialize method
public initialize ( array $config ) : void
$config array The config data
return void
    public function initialize(array $config)
    {
        parent::initialize($config);
        if (Configure::read('Users.GoogleAuthenticator.login')) {
            $this->tfa = new TwoFactorAuth(Configure::read('Users.GoogleAuthenticator.issuer'), Configure::read('Users.GoogleAuthenticator.digits'), Configure::read('Users.GoogleAuthenticator.period'), Configure::read('Users.GoogleAuthenticator.algorithm'), Configure::read('Users.GoogleAuthenticator.qrcodeprovider'), Configure::read('Users.GoogleAuthenticator.rngprovider'), Configure::read('Users.GoogleAuthenticator.encryptionKey'));
        }
    }