Ensure that doesn't 'fail open' if existing providers poof. by georgestephanis · Pull Request #586 · WordPress/two-factor (original) (raw)

@georgestephanis

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.

TimothyBJacobs

@georgestephanis

@georgestephanis

@georgestephanis

@georgestephanis

The return value uses the class as keys, and the object as the value.

@georgestephanis

TOTP being unconfigured stripped it out otherwise.

TimothyBJacobs

@georgestephanis @TimothyBJacobs

Co-authored-by: Timothy Jacobs timothy@ironbounddesigns.com

This was referenced

Aug 28, 2023

@dd32

@georgestephanis

@georgestephanis

kasparsd

@georgestephanis @kasparsd

Props Kaspars for the suggestion to relocate to keep the function signatures.

Co-Authored-By: Kaspars Dambis hi@kaspars.net

kasparsd

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 }})