    public function checkCode($secret, $code)
    {
        $time = floor(time() / 30);
        for ($i = -1; $i <= 1; $i++) {
            if ($this->getCode($secret, $time + $i) == $code) {
                return true;
            }
        }

        return false;
    }
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.