From 3e120812e34570bfc17052ac9bdfa8731ce64ece Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 3 Sep 2020 15:55:20 -0700 Subject: [PATCH] Removed 2FA reset button if the user is not enrolled in 2FA --- resources/views/users/view.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index c5275b0c1e..86b76eb903 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -285,7 +285,7 @@ {{ ($user->two_factor_active_and_enrolled()) ? trans('general.yes') : trans('general.no') }} - @if ((Auth::user()->isSuperUser()) && ($snipeSettings->two_factor_enabled!='0')) + @if ((Auth::user()->isSuperUser()) && ($snipeSettings->two_factor_enabled!='0') && ($snipeSettings->two_factor_enabled!=''))
{{ trans('admin/settings/general.two_factor_reset') }}