Skip to content

Commit

Permalink
Add back the password as the hook will provide it
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Jan 10, 2025
1 parent 2dd1c2f commit 89b6829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ public static function destroy_current_session_for_user( $user ) {
*
* @return WP_User|WP_Error
*/
public static function filter_authenticate( $user, $username ) {
public static function filter_authenticate( $user, $username, $password ) {
if ( strlen( $username ) && $user instanceof WP_User && self::is_user_using_two_factor( $user->ID ) ) {
// Disable authentication requests for API requests for users with two-factor enabled.
if ( self::is_api_request() && ! self::is_user_api_login_enabled( $user->ID ) ) {
Expand Down

0 comments on commit 89b6829

Please sign in to comment.