@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') {{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }} {{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', Request::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', Request::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_text_label', trans('admin/settings/general.pwd_secure_uncommon')) }}
{!! $errors->first('pwd_secure_uncommon', '') !!}

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

{{ Form::label('pwd_secure_complexity', trans('admin/settings/general.pwd_secure_complexity')) }}
{{ Form::checkbox("pwd_secure_complexity['disallow_same_pwd_as_user_fields']", 'disallow_same_pwd_as_user_fields', old('disallow_same_pwd_as_user_fields', strpos($setting->pwd_secure_complexity, 'disallow_same_pwd_as_user_fields')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} {{ trans('admin/settings/general.pwd_secure_complexity_disallow_same_pwd_as_user_fields') }}
{{ Form::checkbox("pwd_secure_complexity['letters']", 'letters', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'letters')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} {{ trans('admin/settings/general.pwd_secure_complexity_letters') }}
{{ Form::checkbox("pwd_secure_complexity['numbers']", 'numbers', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'numbers')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} {{ trans('admin/settings/general.pwd_secure_complexity_numbers') }}
{{ Form::checkbox("pwd_secure_complexity['symbols']", 'symbols', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'symbols')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} {{ trans('admin/settings/general.pwd_secure_complexity_symbols') }}
{{ Form::checkbox("pwd_secure_complexity['case_diff']", 'case_diff', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'case_diff')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }} {{ trans('admin/settings/general.pwd_secure_complexity_case_diff') }}

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


{{ Form::label('login_remote_user_label', trans('admin/settings/general.login_remote_user_text')) }}
@if (config('app.lock_passwords'))

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

@else {{ Form::checkbox('login_remote_user_enabled', '1', old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('class' => 'minimal', 'aria-label'=>'login_remote_user')) }} {{ Form::label('login_remote_user_enabled', trans('admin/settings/general.login_remote_user_enabled_text')) }} {!! $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', Request::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') }}

{!! $errors->first('login_common_disabled', '') !!}

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

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