mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44: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') }}
|
{{ trans('admin/users/general.two_factor_active') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<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" />
|
<x-icon type="checkmark" class="fa-fw text-success" />
|
||||||
{{ trans('general.yes') }}
|
{{ trans('general.yes') }}
|
||||||
@else
|
@else
|
||||||
|
@ -690,7 +690,7 @@
|
||||||
{{ trans('admin/users/general.two_factor_enrolled') }}
|
{{ trans('admin/users/general.two_factor_enrolled') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9" id="two_factor_reset_toggle">
|
<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" />
|
<x-icon type="checkmark" class="fa-fw text-success" />
|
||||||
{{ trans('general.yes') }}
|
{{ trans('general.yes') }}
|
||||||
@else
|
@else
|
||||||
|
|
Loading…
Reference in a new issue