Skip to content

Commit

Permalink
Merge pull request #54 from humanmade/backport-52-to-v2-branch
Browse files Browse the repository at this point in the history
[Backport v2-branch] Allow boolean values true or false rather than only true
  • Loading branch information
roborourke authored Mar 27, 2020
2 parents 56f0847 + 0bc00de commit 1196384
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 @@ -53,7 +53,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 1196384

Please sign in to comment.