From 0dd6f41f66c0e41ca8ac3561162f818b1af88540 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 2 Oct 2024 11:04:55 +0100 Subject: [PATCH] Simplified 2fa if/else Signed-off-by: snipe --- resources/views/users/view.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index 2f5573758c..b726d22e90 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -673,7 +673,7 @@ {{ trans('admin/users/general.two_factor_active') }}
- @if ($user->two_factor_active() == '1') + @if ($user->two_factor_active()) {{ trans('general.yes') }} @else @@ -690,7 +690,7 @@ {{ trans('admin/users/general.two_factor_enrolled') }}
- @if ($user->two_factor_active_and_enrolled() == '1') + @if ($user->two_factor_active_and_enrolled()) {{ trans('general.yes') }} @else