Skip to content

Wordfence 2FA Conflicts with [members_login_form] Shortcode in Members Plugin #170

@omaraelhawary

Description

@omaraelhawary

Description

After enabling Two-Factor Authentication (2FA) via Wordfence, the [members_login_form] shortcode provided by the Members plugin no longer functions correctly. Users attempting to log in via this form receive an error stating “Invalid username or password” despite entering the correct credentials. This issue does not occur on the default WordPress login page (/wp-login.php), where Wordfence 2FA functions as expected.

Steps to Reproduce

  1. Install and activate the Members plugin.
  2. Create a login page using the [members_login_form] shortcode.
  3. Enable Wordfence and configure 2FA for user accounts.
  4. Attempt to log in using the custom login page.
  5. Observe the error message: “Invalid username or password.”

Expected Behavior

Users should be prompted for 2FA verification or successfully logged in after submitting correct credentials via the Members login form.

Actual Behavior

Users are incorrectly denied access with an invalid credentials message.

Hosting Environment

No response

Payment Gateway (if applicable)

None

Transaction ID (if applicable)

No response

API, Server, or Error Logs (if applicable)

Screenshots or Videos

Image

Support Ticket Link

https://wordpress.org/support/topic/wordfence-2fa-issue/

Additional Information

No response

Site Health Check Report

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions