Removed 2FA reset button if the user is not enrolled in 2FA

This commit is contained in:
snipe 2020-09-03 15:55:20 -07:00
parent 3ea3e8b856
commit 3e120812e3
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -285,7 +285,7 @@
{{ ($user->two_factor_active_and_enrolled()) ? trans('general.yes') : trans('general.no') }}
</div>
@if ((Auth::user()->isSuperUser()) && ($snipeSettings->two_factor_enabled!='0'))
@if ((Auth::user()->isSuperUser()) && ($snipeSettings->two_factor_enabled!='0') && ($snipeSettings->two_factor_enabled!=''))
<div class="col-md-11">
<a class="btn btn-default btn-sm pull-left" id="two_factor_reset" style="margin-right: 10px;"> {{ trans('admin/settings/general.two_factor_reset') }}</a>
<span id="two_factor_reseticon">