-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
Milestone
Description
Describe the bug
The wp_login hook is not firing after a successful login for users with a two-factor option enabled when using a fresh installation with only Two Factor installed.
Steps to Reproduce
- Install WordPress
- Install Two Factor
- Enable Email 2FA for the user and log out
- Add this code to the top of the
functions.phpfile of thetwentytwentyfourtheme:
function namespace_user_login( $user_login, $user ) {
error_log('wp_login');
}
add_action( 'wp_login', 'namespace_user_login', 10, 2 );
- Log in again
- Check the error log - there is no
wp_loginmessage, and there are no other error messages.
Environment information
- WordPress version 6.4.2
- Twenty Twenty Four theme version 1.0
- Two Factor version 0.8.2
- PHP version 8.1
Please confirm that you have searched existing issues in this repository.
Yes
Please confirm that you have tested with all plugins deactivated except Two-Factor.
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done