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

Allow admin to disable Time Based One-Time Password on user accounts #226

Closed
mdbitz opened this issue Apr 18, 2018 · 2 comments
Closed

Allow admin to disable Time Based One-Time Password on user accounts #226

mdbitz opened this issue Apr 18, 2018 · 2 comments
Milestone

Comments

@mdbitz
Copy link

mdbitz commented Apr 18, 2018

In the plugin you can programmatically disable providers using the filter two_factor_providers
https://github.com/georgestephanis/two-factor/blob/fced6f579161631791c525976a1dbb6211bef35c/class.two-factor-core.php#L85

I'd like to request the ability for Site Admins to disable providers per user. For example the ability to disable the "Time Based One-Time Password" for specific user accounts.

@iandunn
Copy link
Member

iandunn commented Oct 17, 2022

It seems like the two_factor_enabled_providers_for_user filter would work for this. It was added in #344

I'll go ahead and close this, but we can always reopen it if there's that PR didn't address.

@iandunn iandunn closed this as completed Oct 17, 2022
@jeffpaul jeffpaul added this to the 0.5.2 milestone Oct 17, 2022
@ocean90
Copy link
Member

ocean90 commented Nov 6, 2024

Created a follow-up since two_factor_enabled_providers_for_user isn't useful for this: #647

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

5 participants