--- a/plugins/yubikey/admincp.php Sun Mar 01 21:44:08 2009 -0500
+++ b/plugins/yubikey/admincp.php Sun Mar 01 21:45:44 2009 -0500
@@ -61,6 +61,19 @@
</td>
</tr>
+ <tr>
+ <td class="row2">
+ <?php echo $lang->get('yubiacp_field_reg_require_otp_title'); ?><br />
+ <small><?php echo $lang->get('yubiacp_field_reg_require_otp_hint'); ?></small>
+ </td>
+ <td class="row2">
+ <label>
+ <input type="checkbox" name="yubikey_reg_require_otp" <?php if ( getConfig('yubikey_reg_require_otp', '0') == '1' ) echo 'checked="checked" '; ?>/>
+ <?php echo $lang->get('yubiacp_field_reg_require_otp'); ?>
+ </label>
+ </td>
+ </tr>
+
<?php
}
@@ -73,6 +86,7 @@
setConfig('yubikey_api_key', $_POST['yubikey_api_key']);
setConfig('yubikey_api_key_id', intval($_POST['yubikey_api_key_id']));
setConfig('yubikey_enroll_limit', intval($_POST['yubikey_enroll_limit']));
+ setConfig('yubikey_reg_require_otp', isset($_POST['yubikey_reg_require_otp']) ? '1' : '0');
if ( preg_match('#^(?:https?://)?(\[?[a-z0-9-:]+(?:\.[a-z0-9-:]+\]?)*)(/.*)$#', $_POST['yubikey_auth_server']) )
setConfig('yubikey_auth_server', $_POST['yubikey_auth_server']);