Skip to content

Commit a255ce7

Browse files
committed
fix logic
1 parent 2b4fa36 commit a255ce7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Features.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ public static function updatePasswords()
137137
*/
138138
public static function twoFactorAuthentication(array $options = [])
139139
{
140-
static::$featureOptions['two-factor-authentication'] = $options;
140+
if (! empty($options)) {
141+
static::$featureOptions['two-factor-authentication'] = $options;
142+
}
141143

142144
return 'two-factor-authentication';
143145
}

0 commit comments

Comments
 (0)