From 3c428f2d7ba90bfc055528a8da28dedc3f474c35 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 27 May 2025 16:40:08 -0700 Subject: [PATCH] Inline two_factor_options macro --- resources/macros/macros.php | 18 ------------------ resources/views/settings/security.blade.php | 11 +++++++++-- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/resources/macros/macros.php b/resources/macros/macros.php index 231fb0ab8e..48af9dbbb6 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -220,24 +220,6 @@ Form::macro('username_format', function ($name = 'username_format', $selected = return $select; }); -Form::macro('two_factor_options', function ($name = 'two_factor_enabled', $selected = null, $class = null) { - $formats = [ - '' => trans('admin/settings/general.two_factor_disabled'), - '1' => trans('admin/settings/general.two_factor_optional'), - '2' => trans('admin/settings/general.two_factor_required'), - - ]; - - $select = ''; - - return $select; -}); - Form::macro('customfield_elements', function ($name = 'customfield_elements', $selected = null, $class = null) { $formats = [ 'text' => 'Text Box', diff --git a/resources/views/settings/security.blade.php b/resources/views/settings/security.blade.php index f1b5f42498..6c1b1ea69c 100644 --- a/resources/views/settings/security.blade.php +++ b/resources/views/settings/security.blade.php @@ -48,8 +48,15 @@
- - {!! Form::two_factor_options('two_factor_enabled', old('two_factor_enabled', $setting->two_factor_enabled), 'select2') !!} +

{{ trans('admin/settings/general.two_factor_enabled_warning') }}

@if (config('app.lock_passwords'))