Title: Interesting Hack &#8211; class-two-factor-core.php
Last modified: March 22, 2020

---

# Interesting Hack – class-two-factor-core.php

 *  Resolved [Jacob Hill](https://wordpress.org/support/users/tekfused/)
 * (@tekfused)
 * [6 years ago](https://wordpress.org/support/topic/interesting-hack-class-two-factor-core-php/)
 * Hello,
 * I have a few sites that are reporting that the following file has been modified:**
   class-two-factor-core.php**
 * The only change was removing this line on **line 705**:
 * > do_action( ‘two_factor_user_authenticated’, $user );
 * What affect would that have on the plugin? Perhaps this would allow bypassing
   the two factor requirement?
 * Thank you!
 * Jacob Hill

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kaspars](https://wordpress.org/support/users/kasparsd/)
 * (@kasparsd)
 * [6 years ago](https://wordpress.org/support/topic/interesting-hack-class-two-factor-core-php/#post-12581559)
 * Hi! This hook was added in one of the recent releases and it can’t be used for
   anything apart from detecting when a user is logged-in after the second-factor
   authentications.
 * [https://github.com/WordPress/two-factor/pull/324/files](https://github.com/WordPress/two-factor/pull/324/files)

Viewing 1 replies (of 1 total)

The topic ‘Interesting Hack – class-two-factor-core.php’ is closed to new replies.

 * ![](https://ps.w.org/two-factor/assets/icon.svg?rev=2887448)
 * [Two Factor](https://wordpress.org/plugins/two-factor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/two-factor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/two-factor/)
 * [Active Topics](https://wordpress.org/support/plugin/two-factor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/two-factor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/two-factor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kaspars](https://wordpress.org/support/users/kasparsd/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/interesting-hack-class-two-factor-core-php/#post-12581559)
 * Status: resolved