$en = $tlid+20;
for($i=$st; $i<$en; $i++) {
$stest = $this->oath_hotp($tkey, $i);
- error_log("code: $code, $stest, $tkey, $tid");
+ //error_log("code: $code, $stest, $tkey, $tid");
if($code == $stest) {
$sql = "update tokens set token_lastid='$i' where token_id='$tid'";
$this->dbConnector->query($sql);
$t_lat = $t_now + 60;
$t_st = ((int)($t_ear/30));
$t_en = ((int)($t_lat/30));
- error_log("kmac: $t_now, $t_ear, $t_lat, $t_st, $t_en");
+ //error_log("kmac: $t_now, $t_ear, $t_lat, $t_st, $t_en");
for($i=$t_st; $i<=$t_en; $i++) {
$stest = $this->oath_hotp($tkey, $i);
- error_log("code: $code, $stest, $tkey\n");
+ //error_log("code: $code, $stest, $tkey\n");
if($code == $stest) {
return true;
}