yms/yms.php
changeset 6 c1b4f69c187e
parent 5 a917cbab0280
child 8 be4a5f24bb29
--- 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()
 {