diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 6226b1ba94..849e9af074 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -920,7 +920,8 @@ class UsersController extends Controller $allowed_columns = [ 'last_name','first_name','email','jobtitle','username','employee_num', - 'assets','accessories', 'consumables','licenses','groups','activated','created_at','two_factor_enrolled' + 'assets','accessories', 'consumables','licenses','groups','activated','created_at', + 'two_factor_enrolled','two_factor_optin' ]; $sort = in_array($sort, $allowed_columns) ? $sort : 'first_name'; @@ -995,9 +996,10 @@ class UsersController extends Controller 'consumables' => $user->consumables->count(), 'groups' => $group_names, 'notes' => e($user->notes), - 'two_factor_enrolled' => ($user->two_factor_enrolled=='1') ? '' : '', + 'two_factor_enrolled' => ($user->two_factor_enrolled=='1') ? '' : '', + 'two_factor_optin' => (($user->two_factor_optin=='1') || (Setting::getSettings()->two_factor_enabled=='2') ) ? '' : '', 'created_at' => ($user->created_at!='') ? e($user->created_at->format('F j, Y h:iA')) : '', - 'activated' => ($user->activated=='1') ? '' : '', + 'activated' => ($user->activated=='1') ? '' : '', 'actions' => ($actions) ? $actions : '', 'companyName' => is_null($user->company) ? '' : e($user->company->name) ); diff --git a/resources/lang/en/admin/users/general.php b/resources/lang/en/admin/users/general.php index 8763a4a777..92ee04b491 100644 --- a/resources/lang/en/admin/users/general.php +++ b/resources/lang/en/admin/users/general.php @@ -16,4 +16,6 @@ return array( 'view_user' => 'View User :name', 'usercsv' => 'CSV file', 'two_factor_admin_optin_help' => 'Your current admin settings allow selective enforcement of two-factor authentication. ', + 'two_factor_enrolled' => '2FA Device Enrolled ', + 'two_factor_active' => '2FA Active ', ); diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php index c5c1cdf40a..6ddec064b5 100755 --- a/resources/views/users/index.blade.php +++ b/resources/views/users/index.blade.php @@ -108,7 +108,9 @@