Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2FA not Enforced if a User has an Additional Capability and wpga_active not Set #43

Open
asif-anwar opened this issue Sep 30, 2021 · 0 comments

Comments

@asif-anwar
Copy link

Hey,

I want to report a corner case. We have enforced 2FA for a select list of roles. But the user is able to log in without 2FA if,

  1. The user has a capability directly assign to him in addition to a normal role like this a:2:{s:14:"capability_new";b:1;s:10:"subscriber";b:1;},
  2. And wpga_active meta key is not set. We have a lot of cases where the 2FA is active but wpga_active is not set
  3. And the capability comes before the role.

Thanks
Asif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant