mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
remove "twoFactorAuthEnabled" from preferences. Kill switches for all code that references them (easier for refactor)
This commit is contained in:
@@ -245,6 +245,7 @@ class UserRepository implements UserRepositoryInterface
|
||||
$return = [];
|
||||
|
||||
// two factor:
|
||||
die('this method references 2FA and must be refactored.');
|
||||
$is2faEnabled = app('preferences')->getForUser($user, 'twoFactorAuthEnabled', false)->data;
|
||||
$has2faSecret = null !== app('preferences')->getForUser($user, 'twoFactorAuthSecret');
|
||||
$return['has_2fa'] = false;
|
||||
|
Reference in New Issue
Block a user