BREAKING: changed API fieldname result for 2FA

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-01-17 17:21:40 -08:00
parent dbda288a44
commit 4ef0005e7c

View file

@ -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,