--- a/YubikeyManagement.php Mon Aug 03 03:03:35 2009 -0400
+++ b/YubikeyManagement.php Fri Aug 07 16:17:20 2009 -0400
@@ -154,6 +154,7 @@
th_client_id: 'Client ID',
lbl_client_id: 'Client ID:',
th_api_key: 'API key',
+ lbl_validate_url: 'Validation API URL:',
// Deletion interface
msg_delete_confirm: 'Are you sure you want to delete this Yubikey?',
--- a/yms/yms.php Mon Aug 03 03:03:35 2009 -0400
+++ b/yms/yms.php Fri Aug 07 16:17:20 2009 -0400
@@ -388,7 +388,8 @@
$output->footer();
}
-// Add key that's already registered
+// Add key, using just an OTP
+// Requires the key to be in the database as client ID 0
function page_Special_YMS_AddPreregisteredKey()
{
global $db, $session, $paths, $template, $plugins; // Common objects
@@ -635,6 +636,9 @@
$api_key = yms_tobinary($api_key);
+ $validate_url = makeUrlComplete('Special', 'YubikeyValidate');
+ $validate_url = preg_replace('/[?&]auth=[0-9a-f]+/', '', $validate_url);
+
$output->header();
?>
<div class="tblholder">
@@ -650,6 +654,11 @@
</tr>
<tr>
+ <td class="row2"><?php echo $lang->get('yms_lbl_validate_url'); ?></td>
+ <td class="row1"><?php echo htmlspecialchars($validate_url); ?></td>
+ </tr>
+
+ <tr>
<th colspan="2"><?php echo $lang->get('yms_th_api_key'); ?></th>
</tr>
@@ -887,9 +896,6 @@
}
}
-// Add key, using just an OTP
-// Requires the key to be in the database as client ID 0
-
// Client creation
function page_Special_YMSCreateClient()
{