diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index dc1c5b1611..d2c8fe25d8 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -478,6 +478,11 @@ class SettingsController extends Controller $setting->two_factor_enabled = null; } else { $setting->two_factor_enabled = $request->input('two_factor_enabled'); + + # remote user login + $setting->login_remote_user_enabled = (int)$request->input('login_remote_user_enabled'); + $setting->login_common_disabled= (int)$request->input('login_common_disabled'); + $setting->login_remote_user_custom_logout_url = $request->input('login_remote_user_custom_logout_url'); } } @@ -486,10 +491,6 @@ class SettingsController extends Controller $setting->pwd_secure_min = (int) $request->input('pwd_secure_min'); $setting->pwd_secure_complexity = ''; - # remote user login - $setting->login_remote_user_enabled = (int)$request->input('login_remote_user_enabled'); - $setting->login_common_disabled= (int)$request->input('login_common_disabled'); - $setting->login_remote_user_custom_logout_url = $request->input('login_remote_user_custom_logout_url'); if ($request->has('pwd_secure_complexity')) { $setting->pwd_secure_complexity = implode('|', $request->input('pwd_secure_complexity')); diff --git a/resources/views/settings/security.blade.php b/resources/views/settings/security.blade.php index 26052cec22..e9589b1691 100644 --- a/resources/views/settings/security.blade.php +++ b/resources/views/settings/security.blade.php @@ -123,27 +123,33 @@
- {{ trans('admin/settings/general.login_remote_user_enabled_help') }} -
- - {{ Form::label('login_remote_user_custom_logout_url', trans('admin/settings/general.login_remote_user_custom_logout_url_text')) }} - {{ Form::text('login_remote_user_custom_logout_url', Input::old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url),array('class' => 'form-control')) }} - {!! $errors->first('login_remote_user_custom_logout_url', ':message') !!} -- {{ trans('admin/settings/general.login_remote_user_custom_logout_url_help') }} -
- - {{ Form::checkbox('login_common_disabled', '1', Input::old('login_common_disabled', $setting->login_common_disabled),array('class' => 'minimal')) }} - {{ Form::label('login_common_disabled', trans('admin/settings/general.login_common_disabled_text')) }} - {!! $errors->first('login_common_disabled', ':message') !!} -- {{ trans('admin/settings/general.login_common_disabled_help') }} -
+ @if (config('app.lock_passwords')) +{{ trans('general.feature_disabled') }}
+ @else + {{ Form::checkbox('login_remote_user_enabled', '1', Input::old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('class' => 'minimal')) }} + {{ Form::label('login_remote_user_enabled', trans('admin/settings/general.login_remote_user_enabled_text')) }} + {!! $errors->first('login_remote_user_enabled', ':message') !!} ++ {{ trans('admin/settings/general.login_remote_user_enabled_help') }} +
+ + {{ Form::label('login_remote_user_custom_logout_url', trans('admin/settings/general.login_remote_user_custom_logout_url_text')) }} + {{ Form::text('login_remote_user_custom_logout_url', Input::old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url),array('class' => 'form-control')) }} + + {!! $errors->first('login_remote_user_custom_logout_url', ':message') !!} ++ {{ trans('admin/settings/general.login_remote_user_custom_logout_url_help') }} +
+ + {{ Form::checkbox('login_common_disabled', '1', Input::old('login_common_disabled', $setting->login_common_disabled),array('class' => 'minimal')) }} + {{ Form::label('login_common_disabled', trans('admin/settings/general.login_common_disabled_text')) }} + {!! $errors->first('login_common_disabled', ':message') !!} ++ {{ trans('admin/settings/general.login_common_disabled_help') }} +
+ @endif +