Skip to content

Commit

Permalink
Merge pull request #53 from humanmade/backport-52-to-v3-branch
Browse files Browse the repository at this point in the history
[Backport v3-branch] Allow boolean values true or false rather than only true
  • Loading branch information
roborourke authored Mar 27, 2020
2 parents 3b33240 + 4770742 commit fd9bbf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function remove_2fa_dummy_provider( array $providers ) : array {
*/
function override_two_factor_universally_forced( bool $is_forced ) : bool {
$config = get_config()['modules']['security']['2-factor-authentication'];
if ( ! empty( $config['required'] ) && is_bool( $config['required'] ) ) {
if ( ! empty( $config['required'] ) || is_bool( $config['required'] ) ) {
return $config['required'];
}

Expand Down

0 comments on commit fd9bbf2

Please sign in to comment.