1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 01:52:15 +01:00

Drop chk_time.

This commit is contained in:
Simon Josefsson 2009-05-06 13:20:40 +00:00
parent b9c2396d74
commit c72f75f539
3 changed files with 5 additions and 5 deletions

View File

@ -212,7 +212,7 @@ function addNewKey($conn, $devId) {
// $clientId: The decimal client identity
function getClientData($conn, $clientId) {
$stmt =
'SELECT id, secret, chk_time '.
'SELECT id, secret '.
'FROM clients '.
'WHERE active AND id='.mysql_quote($clientId);
$r = query($conn, $stmt);

View File

@ -6,9 +6,9 @@ CREATE TABLE clients (
id INT NOT NULL AUTO_INCREMENT,
active BOOLEAN DEFAULT TRUE,
created DATETIME NOT NULL,
email VARCHAR(255) NOT NULL DEFAULT '',
email VARCHAR(255),
secret VARCHAR(60) NOT NULL DEFAULT '',
chk_time BOOLEAN DEFAULT TRUE,
notes VARCHAR(100),
PRIMARY KEY (id)
);
@ -30,6 +30,6 @@ CREATE TABLE yubikeys (
CREATE USER ykval_verifier;
GRANT SELECT,INSERT,UPDATE(accessed, counter, low, high, sessionUse)
ON ykval.yubikeys to 'ykval_verifier'@'localhost';
GRANT SELECT(id, secret, chk_time, active)
GRANT SELECT(id, secret, active)
ON ykval.clients to 'ykval_verifier'@'localhost';
FLUSH PRIVILEGES;

View File

@ -163,7 +163,7 @@ if ($sessionCounter == $seenSessionCounter && $sessionUse > $seenSessionUse) {
round(100*$percent) . '%');
if ($deviation > TS_ABS_TOLERANCE && $percent > TS_REL_TOLERANCE) {
debug("OTP failed phishing test");
if ($cd['chk_time']) {
if (0) {
sendResp(S_DELAYED_OTP);
exit;
}