Simplified 2fa if/else

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-10-02 11:04:55 +01:00
parent 684c20ae39
commit 0dd6f41f66

View file

@ -673,7 +673,7 @@
{{ trans('admin/users/general.two_factor_active') }}
</div>
<div class="col-md-9">
@if ($user->two_factor_active() == '1')
@if ($user->two_factor_active())
<x-icon type="checkmark" class="fa-fw text-success" />
{{ trans('general.yes') }}
@else
@ -690,7 +690,7 @@
{{ trans('admin/users/general.two_factor_enrolled') }}
</div>
<div class="col-md-9" id="two_factor_reset_toggle">
@if ($user->two_factor_active_and_enrolled() == '1')
@if ($user->two_factor_active_and_enrolled())
<x-icon type="checkmark" class="fa-fw text-success" />
{{ trans('general.yes') }}
@else