# HG changeset patch # User Dan # Date 1249676240 14400 # Node ID c1b4f69c187e511c390633803067f03d3bb5e4d1 # Parent a917cbab02800e853ca2f441bf5a3f427427da59 Added validation URL to client info page diff -r a917cbab0280 -r c1b4f69c187e YubikeyManagement.php --- 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?', diff -r a917cbab0280 -r c1b4f69c187e yms/yms.php --- 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(); ?>
@@ -650,6 +654,11 @@ + get('yms_lbl_validate_url'); ?> + + + + get('yms_th_api_key'); ?> @@ -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() {