mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
ykval-gen-clients -h does not include db config.
This commit is contained in:
parent
9caeb0c047
commit
6b2ab995e7
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user