Ensure that doesn't 'fail open' if existing providers poof. by georgestephanis · Pull Request #586 · WordPress/two-factor (original) (raw)
This also ensures if a user only had U2F enabled, and it's deprecated and removed, that it won't "fail open" for lack of any available methods.
If Email is available, shove it in. If not, return an error.
The return value uses the class as keys, and the object as the value.
TOTP being unconfigured stripped it out otherwise.
Co-authored-by: Timothy Jacobs timothy@ironbounddesigns.com
This was referenced
Aug 28, 2023
Props Kaspars for the suggestion to relocate to keep the function signatures.
Co-Authored-By: Kaspars Dambis hi@kaspars.net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})