Title: Optimizations for the plugin
Last modified: August 30, 2016

---

# Optimizations for the plugin

 *  [Stefan M.](https://wordpress.org/support/users/stefan-m-1/)
 * (@stefan-m-1)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/optimizations-for-the-plugin/)
 * Adding tabindex to the OTP Title URL:
 *     ```
       function yubikey_loginform() {
         echo "<p>";
         echo "<label><a tabindex=\"-1\" href=\"http://www.yubico.com/products/yubikey/\" target=\"_blank\" title=\"".__('If You don\'t have a Yubikey enabled for Your WordPress account, leave this field empty.','yubikey')."\">".__('Yubikey OTP','yubikey')."</a><br />";
         echo "<input type=\"text\" name=\"otp\" id=\"user_email\" class=\"input\" value=\"\" size=\"20\"/></label>";
         echo "</p>";
       }
       ```
   
 * Then, the OTP Field can be reached as normal with 1 tag after the password field.
   
   More user frendly.
 * Additional, I would like to request a small filter within the function: yubikey_check_otp()
 *     ```
       if (apply_filters("customsinglesignon") == true) {
       	return true;
       }
       ```
   
 * Most of customers of me use a SSO page where they authentificate themself including
   yubikey. They are not been able to automatically pass the yubikeyauth on the 
   page, as I cannot force them wo login.
 * With our plugin, all direct logins are handled and protected well, but with the
   small filter, I can use other login “security” plugins to hack and bypass the
   yubikey, if the customer has other modules too in parallel.
 * Would be nice if there would be an update, otherwise I will need to release an
   own version, which I so not want to.
 * Regards
    Stefan
 * (Topic subscribed for updates)
 * [https://wordpress.org/plugins/yubikey-plugin/](https://wordpress.org/plugins/yubikey-plugin/)

The topic ‘Optimizations for the plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yubikey-plugin.svg)
 * [yubikey-plugin](https://wordpress.org/plugins/yubikey-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yubikey-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yubikey-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yubikey-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yubikey-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yubikey-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Stefan M.](https://wordpress.org/support/users/stefan-m-1/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/optimizations-for-the-plugin/)
 * Status: not resolved