@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/settings/general.security_title') }} @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
{{ csrf_field() }}

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

{{ Form::label('two_factor_enabled', trans('admin/settings/general.two_factor_enabled_text')) }}
{!! 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'))

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

@endif {!! $errors->first('two_factor_enabled', '') !!}
{{ Form::label('pwd_secure_min', trans('admin/settings/general.pwd_secure_min')) }}
{{ Form::text('pwd_secure_min', old('pwd_secure_min', $setting->pwd_secure_min), array('class' => 'form-control', 'style'=>'width: 50px;')) }} {!! $errors->first('pwd_secure_min', '') !!}

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

{{ Form::label('pwd_secure_complexity', trans('admin/settings/general.pwd_secure_complexity')) }}
@if ($errors->has('pwd_secure_complexity.*')) {{ trans('validation.generic.invalid_value_in_field') }} @endif

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


{{ trans('admin/settings/general.login_remote_user_text') }}
@if (config('app.lock_passwords'))

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

@else {!! $errors->first('login_remote_user_enabled', '') !!}

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

{{ Form::label('login_remote_user_header_name', trans('admin/settings/general.login_remote_user_header_name_text')) }} {{ Form::text('login_remote_user_header_name', old('login_remote_user_header_name', $setting->login_remote_user_header_name),array('class' => 'form-control')) }} {!! $errors->first('login_remote_user_header_name', ':message') !!}

{{ trans('admin/settings/general.login_remote_user_header_name_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', old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url),array('class' => 'form-control', 'aria-label'=>'login_remote_user_custom_logout_url')) }} {!! $errors->first('login_remote_user_custom_logout_url', '') !!}

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

@if ($setting->login_remote_user_enabled == '1') {!! $errors->first('login_common_disabled', '') !!}

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

@endif @endif
{{Form::close()}} @stop