Title: 2FA Input box cleared
Last modified: October 27, 2025

---

# 2FA Input box cleared

 *  Resolved [mtissington](https://wordpress.org/support/users/mtissington/)
 * (@mtissington)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/2fa-input-box-cleared/)
 * This is a great plugin with one annoying feature… the 2FA input box is cleared
   after 200 ms on focus.
 * In class-login.php there is this chunk of code which is the culprit.
 * Please make this optional – I need to disable it being cleared.
 *     ```wp-block-code
                           <script type="text/javascript">
                               setTimeout(function () {
                                   var d
                                   try {
                                       d = document.getElementById('authcode')
                                       d.value = ''
                                       d.focus()
                                   } catch (e) {}
                               }, 200)
                           </script>
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Support [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * (@lucianwpwhite)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/2fa-input-box-cleared/#post-18697911)
 * Thank you for bringing this into our attention [@mtissington](https://wordpress.org/support/users/mtissington/)!
   
   I’ll make sure to add an internal ticket based on this and we’ll check it as 
   part of the upcoming plugin release. If you have additional questions, feel free
   to reach out!

Viewing 1 replies (of 1 total)

The topic ‘2FA Input box cleared’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * Last activity: [7 months, 2 weeks ago](https://wordpress.org/support/topic/2fa-input-box-cleared/#post-18697911)
 * Status: resolved