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

ykval-gen-clients -h does not include db config.

This commit is contained in:
Dain Nilsson 2013-03-12 09:33:47 +01:00
parent 9caeb0c047
commit 6b2ab995e7

View File

@ -31,12 +31,6 @@
set_include_path(get_include_path() . PATH_SEPARATOR . "/usr/share/yubikey-val:/etc/yubico/val");
require_once 'ykval-config.php';
require_once 'ykval-db.php';
$logname="ykval-gen-clients";
$myLog = new Log($logname);
$options = getopt("h", array("help", "email::", "notes::", "otp::", "urandom"));
if(array_key_exists('h', $options) || array_key_exists('help', $options)) {
@ -54,6 +48,12 @@ if(array_key_exists('h', $options) || array_key_exists('help', $options)) {
exit(1);
}
require_once 'ykval-config.php';
require_once 'ykval-db.php';
$logname="ykval-gen-clients";
$myLog = new Log($logname);
$db = Db::GetDatabaseHandle($baseParams, $logname);
if(!$db->connect()) {