mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Simplified 2fa if/else
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
684c20ae39
commit
0dd6f41f66
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue