diff --git a/app/Http/Transformers/UsersTransformer.php b/app/Http/Transformers/UsersTransformer.php index 4d291d22d4..f8636cc574 100644 --- a/app/Http/Transformers/UsersTransformer.php +++ b/app/Http/Transformers/UsersTransformer.php @@ -56,8 +56,8 @@ class UsersTransformer 'permissions' => $user->decodePermissions(), 'activated' => ($user->activated == '1') ? true : false, 'ldap_import' => ($user->ldap_import == '1') ? true : false, - 'two_factor_activated' => ($user->two_factor_active()) ? true : false, 'two_factor_enrolled' => ($user->two_factor_active_and_enrolled()) ? true : false, + 'two_factor_optin' => ($user->two_factor_active()) ? true : false, 'assets_count' => (int) $user->assets_count, 'licenses_count' => (int) $user->licenses_count, 'accessories_count' => (int) $user->accessories_count,