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:
parent
b9c2396d74
commit
c72f75f539
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user