# HG changeset patch
# User Dan
# Date 1249429058 14400
# Node ID 7cd9707ed72f2ad36edfcc5f191cb2f714336181
# Parent b9a3da602841691978a29a382c5b80b6fcb7e779
Fixed OTP field behavior (improper/empty submission) exposed in YMS
diff -r b9a3da602841 -r 7cd9707ed72f plugins/yubikey/corelib.php
--- a/plugins/yubikey/corelib.php Fri Jul 31 23:59:06 2009 -0400
+++ b/plugins/yubikey/corelib.php Tue Aug 04 19:37:38 2009 -0400
@@ -15,6 +15,7 @@
$fid = substr(sha1(microtime() . mt_rand()), 0, 12);
$class = $value ? 'wasfull' : 'wasempty';
$html = '';
+ $html .= '';
if ( $value )
{
$html .= '' . $lang->get('yubiauth_ctl_status_enrolled') . '';
@@ -34,8 +35,6 @@
. $lang->get('yubiauth_ctl_btn_clear') .
'';
}
- $html = ''
- . $html; // '';
return $html;
}