2017-07-07 23:44:48 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2021-11-19 06:23:48 -08:00
|
|
|
{{ trans('admin/settings/general.security_title') }}
|
2017-07-07 23:44:48 -07:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
2020-04-01 03:21:15 -07:00
|
|
|
<a href="{{ route('settings.index') }}" class="btn btn-primary"> {{ trans('general.back') }}</a>
|
2017-07-07 23:44:48 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-17 17:18:17 -07:00
|
|
|
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
|
2017-07-07 23:44:48 -07:00
|
|
|
<!-- CSRF Token -->
|
|
|
|
{{csrf_field()}}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel box box-default">
|
|
|
|
<div class="box-header with-border">
|
2020-04-01 03:21:15 -07:00
|
|
|
<h2 class="box-title">
|
2021-11-19 06:23:48 -08:00
|
|
|
<i class="fas fa-lock" aria-hidden="true"></i> {{ trans('admin/settings/general.security') }}
|
2020-04-01 03:21:15 -07:00
|
|
|
</h2>
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-11 col-md-offset-1">
|
|
|
|
|
2018-03-14 12:48:07 -07:00
|
|
|
|
2017-07-07 23:44:48 -07:00
|
|
|
<!-- Two Factor -->
|
|
|
|
<div class="form-group {{ $errors->has('brand') ? 'error' : '' }}">
|
|
|
|
<div class="col-md-3">
|
|
|
|
{{ Form::label('two_factor_enabled', trans('admin/settings/general.two_factor_enabled_text')) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
{!! Form::two_factor_options('two_factor_enabled', Request::old('two_factor_enabled', $setting->two_factor_enabled), 'select2') !!}
|
2017-07-07 23:44:48 -07:00
|
|
|
<p class="help-block">{{ trans('admin/settings/general.two_factor_enabled_warning') }}</p>
|
|
|
|
|
|
|
|
@if (config('app.lock_passwords'))
|
2021-09-26 01:11:08 -07:00
|
|
|
<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
2017-07-07 23:44:48 -07:00
|
|
|
@endif
|
|
|
|
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('two_factor_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-22 20:32:39 -07:00
|
|
|
<!-- Min characters -->
|
|
|
|
<div class="form-group {{ $errors->has('pwd_secure_min') ? 'error' : '' }}">
|
|
|
|
<div class="col-md-3">
|
|
|
|
{{ Form::label('pwd_secure_min', trans('admin/settings/general.pwd_secure_min')) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
2019-12-10 19:32:50 -08:00
|
|
|
{{ Form::text('pwd_secure_min', Request::old('pwd_secure_min', $setting->pwd_secure_min), array('class' => 'form-control', 'style'=>'width: 50px;')) }}
|
2017-08-22 20:32:39 -07:00
|
|
|
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('pwd_secure_min', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2017-08-22 20:32:39 -07:00
|
|
|
<p class="help-block">
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_min_help') }}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Common Passwords -->
|
2024-03-25 17:59:39 -07:00
|
|
|
<div class="form-group {{ $errors->has('pwd_secure_complexity.*') ? 'error' : '' }}">
|
2017-08-22 20:32:39 -07:00
|
|
|
<div class="col-md-3">
|
|
|
|
{{ Form::label('pwd_secure_complexity', trans('admin/settings/general.pwd_secure_complexity')) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
|
|
|
<span class="sr-only">{{ trans('admin/settings/general.pwd_secure_uncommon') }}</span>
|
|
|
|
{{ Form::checkbox('pwd_secure_uncommon', '1', old('pwd_secure_uncommon', $setting->pwd_secure_uncommon),array( 'aria-label'=>'pwd_secure_uncommon')) }}
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_uncommon') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ 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('aria-label'=>'pwd_secure_complexity')) }}
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_complexity_disallow_same_pwd_as_user_fields') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::checkbox("pwd_secure_complexity['letters']", 'letters', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'letters')!==false), array('aria-label'=>'pwd_secure_complexity')) }}
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_complexity_letters') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::checkbox("pwd_secure_complexity['numbers']", 'numbers', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'numbers')!==false), array('aria-label'=>'pwd_secure_complexity')) }}
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_complexity_numbers') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::checkbox("pwd_secure_complexity['symbols']", 'symbols', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'symbols')!==false), array('aria-label'=>'pwd_secure_complexity')) }}
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_complexity_symbols') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::checkbox("pwd_secure_complexity['case_diff']", 'case_diff', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'case_diff')!==false), array('aria-label'=>'pwd_secure_complexity')) }}
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_complexity_case_diff') }}
|
|
|
|
</label>
|
2017-08-22 20:32:39 -07:00
|
|
|
|
2024-03-25 17:59:39 -07:00
|
|
|
@if ($errors->has('pwd_secure_complexity.*'))
|
2024-03-26 12:23:57 -07:00
|
|
|
<span class="alert-msg">{{ trans('validation.invalid_value_in_field') }}</span>
|
2024-03-25 17:59:39 -07:00
|
|
|
@endif
|
2017-08-22 20:32:39 -07:00
|
|
|
<p class="help-block">
|
|
|
|
{{ trans('admin/settings/general.pwd_secure_complexity_help') }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.form-group -->
|
2018-03-22 14:00:35 -07:00
|
|
|
<hr>
|
|
|
|
<!-- Remote User Authentication -->
|
|
|
|
<div class="form-group {{ $errors->has('login_remote_user') ? 'error' : '' }}">
|
|
|
|
<div class="col-md-3">
|
2023-04-03 22:38:56 -07:00
|
|
|
<strong>{{ trans('admin/settings/general.login_remote_user_text') }}</strong>
|
2018-03-22 14:00:35 -07:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<!-- Enable Remote User Login -->
|
|
|
|
|
2018-05-31 10:53:56 -07:00
|
|
|
@if (config('app.lock_passwords'))
|
2021-09-26 01:11:08 -07:00
|
|
|
<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
2018-05-31 10:53:56 -07:00
|
|
|
@else
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::checkbox('login_remote_user_enabled', '1', old('login_remote_user_enabled', $setting->login_remote_user_enabled),array('aria-label'=>'login_remote_user')) }}
|
|
|
|
{{ Form::label('login_remote_user_enabled', trans('admin/settings/general.login_remote_user_enabled_text')) }}
|
|
|
|
</label>
|
|
|
|
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('login_remote_user_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2018-05-31 10:53:56 -07:00
|
|
|
<p class="help-block">
|
|
|
|
{{ trans('admin/settings/general.login_remote_user_enabled_help') }}
|
|
|
|
</p>
|
2019-09-03 11:07:26 -07:00
|
|
|
<!-- Use custom remote user header name -->
|
|
|
|
{{ Form::label('login_remote_user_header_name', trans('admin/settings/general.login_remote_user_header_name_text')) }}
|
2019-12-10 19:32:50 -08:00
|
|
|
{{ Form::text('login_remote_user_header_name', Request::old('login_remote_user_header_name', $setting->login_remote_user_header_name),array('class' => 'form-control')) }}
|
2019-09-03 11:07:26 -07:00
|
|
|
{!! $errors->first('login_remote_user_header_name', '<span class="alert-msg">:message</span>') !!}
|
|
|
|
<p class="help-block">
|
|
|
|
{{ trans('admin/settings/general.login_remote_user_header_name_help') }}
|
|
|
|
</p>
|
2018-05-31 10:53:56 -07:00
|
|
|
<!-- Custom logout url to redirect to authentication provider -->
|
|
|
|
{{ Form::label('login_remote_user_custom_logout_url', trans('admin/settings/general.login_remote_user_custom_logout_url_text')) }}
|
2020-04-21 03:58:31 -07:00
|
|
|
{{ 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')) }}
|
2018-05-31 10:53:56 -07:00
|
|
|
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('login_remote_user_custom_logout_url', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2018-05-31 10:53:56 -07:00
|
|
|
<p class="help-block">
|
|
|
|
{{ trans('admin/settings/general.login_remote_user_custom_logout_url_help') }}
|
|
|
|
</p>
|
|
|
|
<!-- Disable other logins mechanism -->
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2020-04-01 03:21:15 -07:00
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
{{ Form::checkbox('login_common_disabled', '1', old('login_common_disabled', $setting->login_common_disabled),array('aria-label'=>'login_common_disabled')) }}
|
2020-04-01 03:21:15 -07:00
|
|
|
{{ trans('admin/settings/general.login_common_disabled_text') }}
|
|
|
|
</label>
|
|
|
|
{!! $errors->first('login_common_disabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2018-05-31 10:53:56 -07:00
|
|
|
<p class="help-block">
|
|
|
|
{{ trans('admin/settings/general.login_common_disabled_help') }}
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
2018-03-22 14:00:35 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-08-22 20:32:39 -07:00
|
|
|
|
2017-07-07 23:44:48 -07:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!--/.box-body-->
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="text-left col-md-6">
|
|
|
|
<a class="btn btn-link text-left" href="{{ route('settings.index') }}">{{ trans('button.cancel') }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="text-right col-md-6">
|
2021-09-26 01:11:08 -07:00
|
|
|
<button type="submit" class="btn btn-success"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }}</button>
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div> <!-- /box -->
|
|
|
|
</div> <!-- /.col-md-8-->
|
|
|
|
</div> <!-- /.row-->
|
|
|
|
|
|
|
|
{{Form::close()}}
|
|
|
|
|
|
|
|
@stop
|