# HG changeset patch # User Dan # Date 1275122149 14400 # Node ID f2aa4bc50d2f86ba6c0f83751f09cdb1a7686029 # Parent 03d6287d4a8b2b6d87372343a47bb83df9abcf1a Fixed a few bugs with initial deployment diff -r 03d6287d4a8b -r f2aa4bc50d2f plugins/yubikey/corelib.php --- a/plugins/yubikey/corelib.php Fri Dec 18 19:29:33 2009 -0500 +++ b/plugins/yubikey/corelib.php Sat May 29 04:35:49 2010 -0400 @@ -49,7 +49,8 @@ { $api_key = getConfig('yubikey_api_key'); $api_id = getConfig('yubikey_api_key_id'); - if ( !$api_key || !$api_id ) + // Don't require an API key or user ID to be installed if we're using local YMS + if ( !(getConfig('yubikey_use_local_yms', 0) && defined('YMS_INSTALLED')) && (!$api_key || !$api_id) ) { return array( 'success' => false, @@ -291,6 +292,8 @@ list($yk_enabled, $user_flags) = $db->fetchrow_num(); $db->free_result(); } + $yk_enabled = intval($yk_enabled); + $user_flags = intval($user_flags); $template->add_header(''); }