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

Drop removed field.

This commit is contained in:
Simon Josefsson 2009-05-06 14:41:51 +00:00
parent c651228340
commit 5ba43fe314

View File

@ -191,7 +191,7 @@ function KSMdecryptOTP($urls) {
function getAuthData($conn, $devId) {
$tokenId = modhex2b64($devId);
$stmt =
'SELECT id, active, client_id, counter, sessionUse, low, high, accessed '.
'SELECT id, active, counter, sessionUse, low, high, accessed '.
'FROM yubikeys '.
'WHERE tokenId='.mysql_quote($tokenId);
$r = query($conn, $stmt);
@ -205,8 +205,8 @@ function getAuthData($conn, $devId) {
function addNewKey($conn, $devId) {
$tokenId = modhex2b64($devId);
$stmt = 'INSERT INTO yubikeys (client_id, active, created, tokenId, counter) '.
'VALUES (1, true, NOW(), ' . mysql_quote($tokenId) . ', 0)';
$stmt = 'INSERT INTO yubikeys (active, created, tokenId, counter) '.
'VALUES (true, NOW(), ' . mysql_quote($tokenId) . ', 0)';
$r = query($conn, $stmt);
}