plugins/yubikey/corelib.php
changeset 35 03d6287d4a8b
parent 29 7cd9707ed72f
child 36 f2aa4bc50d2f
--- a/plugins/yubikey/corelib.php	Fri Dec 18 19:28:57 2009 -0500
+++ b/plugins/yubikey/corelib.php	Fri Dec 18 19:29:33 2009 -0500
@@ -28,6 +28,12 @@
     $atext = $lang->get('yubiauth_ctl_btn_enroll');
     $classadd = '';
   }
+  
+  $html .= ' <span class="yubikey_pubkey">';
+  if ( !empty($value) )
+    $html .= htmlspecialchars(substr($value, 0, 12));
+  $html .= '</span> ';
+  
   $html .= ' <a class="abutton' . $classadd . ' yubikey_enroll" onclick="yk_mb_init(\'yubifield' . $fid . '\', \'yubistat' . $fid . '\'); return false;" href="#enroll">' . $atext . '</a>';
   if ( $value )
   {
@@ -35,6 +41,7 @@
              . $lang->get('yubiauth_ctl_btn_clear') .
              '</a>';
   }
+  
   return $html;
 }