equal
deleted
inserted
replaced
26 { |
26 { |
27 $html .= '<span id="yubistat' . $fid . '" class="yubikey_status empty">' . $lang->get('yubiauth_ctl_status_empty') . '</span>'; |
27 $html .= '<span id="yubistat' . $fid . '" class="yubikey_status empty">' . $lang->get('yubiauth_ctl_status_empty') . '</span>'; |
28 $atext = $lang->get('yubiauth_ctl_btn_enroll'); |
28 $atext = $lang->get('yubiauth_ctl_btn_enroll'); |
29 $classadd = ''; |
29 $classadd = ''; |
30 } |
30 } |
|
31 |
|
32 $html .= ' <span class="yubikey_pubkey">'; |
|
33 if ( !empty($value) ) |
|
34 $html .= htmlspecialchars(substr($value, 0, 12)); |
|
35 $html .= '</span> '; |
|
36 |
31 $html .= ' <a class="abutton' . $classadd . ' yubikey_enroll" onclick="yk_mb_init(\'yubifield' . $fid . '\', \'yubistat' . $fid . '\'); return false;" href="#enroll">' . $atext . '</a>'; |
37 $html .= ' <a class="abutton' . $classadd . ' yubikey_enroll" onclick="yk_mb_init(\'yubifield' . $fid . '\', \'yubistat' . $fid . '\'); return false;" href="#enroll">' . $atext . '</a>'; |
32 if ( $value ) |
38 if ( $value ) |
33 { |
39 { |
34 $html .= ' <a class="abutton abutton_red yubikey_enroll" onclick="yk_clear(\'yubifield' . $fid . '\', \'yubistat' . $fid . '\'); return false;" href="#enroll">' |
40 $html .= ' <a class="abutton abutton_red yubikey_enroll" onclick="yk_clear(\'yubifield' . $fid . '\', \'yubistat' . $fid . '\'); return false;" href="#enroll">' |
35 . $lang->get('yubiauth_ctl_btn_clear') . |
41 . $lang->get('yubiauth_ctl_btn_clear') . |
36 '</a>'; |
42 '</a>'; |
37 } |
43 } |
|
44 |
38 return $html; |
45 return $html; |
39 } |
46 } |
40 |
47 |
41 function yubikey_validate_otp($otp) |
48 function yubikey_validate_otp($otp) |
42 { |
49 { |