From 790f9c2fc47cd265c5a21a3287e57d2740361ebb Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 3 Apr 2023 15:38:52 -0700 Subject: [PATCH] Updated 2FA to non-icheck Signed-off-by: snipe --- resources/views/users/edit.blade.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index fc2f201995..1d085806bc 100755 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -488,17 +488,21 @@ @if ($snipeSettings->two_factor_enabled!='') @if ($snipeSettings->two_factor_enabled=='1')
-
- {{ Form::label('two_factor_optin', trans('admin/settings/general.two_factor')) }} -
-
+
+ @if (config('app.lock_passwords')) -
- {{ Form::checkbox('two_factor_optin', '1', Request::old('two_factor_optin', $user->two_factor_optin),['class' => 'minimal', 'disabled'=>'disabled']) }} {{ trans('admin/settings/general.two_factor_enabled_text') }} -

{{ trans('general.feature_disabled') }}

-
+ + + @else - {{ Form::checkbox('two_factor_optin', '1', Request::old('two_factor_optin', $user->two_factor_optin),['class' => 'minimal']) }} {{ trans('admin/settings/general.two_factor_enabled_text') }} + +

{{ trans('admin/users/general.two_factor_admin_optin_help') }}

@endif