TRF Certest first commit
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('page-title', __('Authentication Settings'))
|
||||
@section('page-heading', __('Authentication'))
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumb-item text-muted">
|
||||
@lang('Settings')
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
@lang('Authentication')
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('partials.messages')
|
||||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-pills mb-4 mt-2" id="pills-tab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a href="#auth"
|
||||
class="nav-link active"
|
||||
id="pills-home-tab"
|
||||
data-toggle="pill"
|
||||
aria-controls="pills-home"
|
||||
aria-selected="true">
|
||||
<i class="fa fa-lock"></i>
|
||||
@lang('Authentication')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#registration"
|
||||
class="nav-link"
|
||||
id="pills-home-tab"
|
||||
data-toggle="pill"
|
||||
aria-controls="pills-home"
|
||||
aria-selected="true">
|
||||
<i class="fa fa-user-plus"></i>
|
||||
@lang('Registration')
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
<div role="tabpanel" class="tab-pane active" id="auth">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@include('settings.partials.auth')
|
||||
@include('settings.partials.two-factor')
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@include('settings.partials.throttling')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="registration">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@include('settings.partials.registration')
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@include('settings.partials.recaptcha')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,41 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('page-title', __('General Settings'))
|
||||
@section('page-heading', __('General Settings'))
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumb-item text-muted">
|
||||
@lang('Settings')
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
@lang('General')
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('partials.messages')
|
||||
|
||||
<form action="{{ route('settings.general.update') }}" method="POST" id="general-settings-form">
|
||||
@csrf
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label for="name">@lang('Name')</label>
|
||||
<input type="text" class="form-control input-solid" id="app_name"
|
||||
name="app_name" value="{{ setting('app_name') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
@lang('Update')
|
||||
</button>
|
||||
</form>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,63 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('page-title', __('Notification Settings'))
|
||||
@section('page-heading', __('Notification Settings'))
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumb-item text-muted">
|
||||
@lang('Settings')
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
@lang('Notifications')
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('partials.messages')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
@lang('Email Notifications')
|
||||
</h5>
|
||||
|
||||
<div class="card-body">
|
||||
<form action="{{ route('settings.notifications.update') }}" method="POST" id="notification-settings-form">
|
||||
@csrf
|
||||
|
||||
<div class="form-group mb-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="notifications_signup_email">
|
||||
|
||||
<input type="checkbox"
|
||||
name="notifications_signup_email"
|
||||
class="switch"
|
||||
value="1"
|
||||
id="switch-signup-email"
|
||||
{{ setting('notifications_signup_email') ? 'checked' : '' }}>
|
||||
|
||||
<label for="switch-signup-email"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">@lang('Sign-Up Notification')</label>
|
||||
|
||||
<small class="pt-0 text-muted">
|
||||
@lang('Send an email to the Administrators when user signs up.')
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary mt-3">
|
||||
@lang('Update')
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,73 @@
|
||||
<div class="card">
|
||||
<h6 class="card-header">
|
||||
@lang('General')
|
||||
</h6>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('settings.auth.update') }}" id="auth-general-settings-form">
|
||||
@csrf
|
||||
|
||||
<div class="form-group mb-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="remember_me">
|
||||
<input type="checkbox" name="remember_me" id="switch-remember-me" class="switch"
|
||||
value="1" {{ setting('remember_me') ? 'checked' : '' }}>
|
||||
<label for="switch-remember-me"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">@lang('Allow "Remember Me"')</label>
|
||||
<small class="pt-0 text-muted">
|
||||
@lang("Should 'Remember Me' checkbox be displayed on login form?")
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="forgot_password">
|
||||
<input type="checkbox" name="forgot_password" id="switch-forgot-pass" class="switch"
|
||||
value="1" {{ setting('forgot_password') ? 'checked' : '' }}>
|
||||
<label for="switch-forgot-pass"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">@lang('Forgot Password')</label>
|
||||
<small class="pt-0 text-muted">
|
||||
@lang('Enable/Disable forgot password feature.')
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<label for="login_reset_token_lifetime">
|
||||
@lang('Reset Token Lifetime') <br>
|
||||
<small class="text-muted">
|
||||
@lang('Number of minutes that the reset token should be considered valid.')
|
||||
</small>
|
||||
</label>
|
||||
<input type="text" name="login_reset_token_lifetime"
|
||||
class="form-control input-solid" value="{{ setting('login_reset_token_lifetime', 30) }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<label for="login_reset_token_lifetime">
|
||||
@lang('Max Number of Active Sessions') <br>
|
||||
<small class="text-muted">
|
||||
@lang('Maximum number of active sessions per user. Set to 0 to allow unlimited number of active sessions.')
|
||||
<br>
|
||||
@lang('Only applies when using database session driver.')
|
||||
</small>
|
||||
</label>
|
||||
<input type="text" name="max_active_sessions"
|
||||
class="form-control input-solid" value="{{ setting('max_active_sessions', 0) }}">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
@lang('Update')
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title mb-1">
|
||||
@lang('Google reCAPTCHA')
|
||||
</h5>
|
||||
|
||||
<small class="text-muted d-block mb-4">
|
||||
@lang('Enable/Disable Google reCAPTCHA during the registration.')
|
||||
</small>
|
||||
|
||||
@if (! (config('captcha.secret') && config('captcha.sitekey')))
|
||||
<div class="alert alert-info">
|
||||
@lang('To utilize Google reCAPTCHA, please get your') <code>@lang('Site Key')</code>
|
||||
@lang('and') <code>@lang('Secret Key')</code>
|
||||
@lang('from')
|
||||
<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank">
|
||||
<strong>@lang('reCAPTCHA Website')</strong>
|
||||
</a>,
|
||||
@lang('and update your') <code>RECAPTCHA_SITEKEY</code> @lang('and')
|
||||
<code>RECAPTCHA_SECRETKEY</code> @lang('environment variables inside') <code>.env</code>
|
||||
@lang('file').
|
||||
</div>
|
||||
@else
|
||||
@if (setting('registration.captcha.enabled'))
|
||||
<form action="{{ route('settings.registration.captcha.disable') }}" method="POST" id="captcha-settings-form">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-danger">
|
||||
@lang('Disable')
|
||||
</button>
|
||||
</form>
|
||||
@else
|
||||
<form action="{{ route('settings.registration.captcha.enable') }}" method="POST" id="captcha-settings-form">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-primary">
|
||||
@lang('Enable')
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,76 @@
|
||||
<div class="card">
|
||||
<h6 class="card-header">@lang('General')</h6>
|
||||
|
||||
<div class="card-body">
|
||||
<form action="{{ route('settings.auth.update') }}" method="POST" id="registration-settings-form">
|
||||
@csrf
|
||||
|
||||
<div class="form-group mb-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="reg_enabled">
|
||||
|
||||
<input
|
||||
type="checkbox" name="reg_enabled"
|
||||
id="switch-reg-enabled"
|
||||
class="switch" value="1"
|
||||
{{ setting('reg_enabled') ? 'checked' : '' }}>
|
||||
|
||||
<label for="switch-reg-enabled"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">@lang('Allow Registration')</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="tos">
|
||||
<input
|
||||
value="1"
|
||||
type="checkbox" name="tos"
|
||||
id="switch-tos"
|
||||
class="switch"
|
||||
{{ setting('tos') ? 'checked' : '' }}>
|
||||
<label for="switch-tos"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">@lang('Terms & Conditions')</label>
|
||||
<small class="pt-0 text-muted">
|
||||
@lang('The user has to confirm that he agrees with terms and conditions in order to create an account.')
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="reg_email_confirmation">
|
||||
<input
|
||||
value="1"
|
||||
type="checkbox" name="reg_email_confirmation"
|
||||
id="switch-reg-email-confirm"
|
||||
class="switch"
|
||||
{{ setting('reg_email_confirmation') ? 'checked' : '' }}>
|
||||
<label for="switch-reg-email-confirm"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">
|
||||
@lang('Email Confirmation')
|
||||
</label>
|
||||
<small class="text-muted">
|
||||
@lang('Require email confirmation from your newly registered users.')
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary mt-3">
|
||||
@lang('Update')
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,59 @@
|
||||
<div class="card">
|
||||
<h6 class="card-header">
|
||||
@lang('Authentication Throttling')
|
||||
</h6>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('settings.auth.update') }}" id="auth-throttle-settings-form">
|
||||
@csrf
|
||||
|
||||
<div class="form-group mb-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="switch">
|
||||
<input type="hidden" value="0" name="throttle_enabled">
|
||||
<input type="checkbox"
|
||||
class="switch"
|
||||
id="switch-throttle"
|
||||
name="throttle_enabled"
|
||||
value="1"
|
||||
{{ setting('throttle_enabled') ? 'checked' : '' }}>
|
||||
<label for="switch-throttle"></label>
|
||||
</div>
|
||||
<div class="ml-3 d-flex flex-column">
|
||||
<label class="mb-0">@lang('Throttle Authentication')</label>
|
||||
<small class="text-muted">
|
||||
@lang('Should the system throttle authentication attempts?')
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<label for="throttle_attempts">
|
||||
@lang('Maximum Number of Attempts') <br>
|
||||
<small class="text-muted">
|
||||
@lang('Maximum number of incorrect login attempts before lockout.')
|
||||
</small>
|
||||
</label>
|
||||
<input type="text" name="throttle_attempts" class="form-control input-solid"
|
||||
value="{{ setting('throttle_attempts', 10) }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group my-4">
|
||||
<label for="throttle_lockout_time">
|
||||
@lang('Lockout Time') <br>
|
||||
<small class="text-muted">
|
||||
@lang('Number of minutes to lock the user out for after specified maximum number of incorrect login attempts.')
|
||||
</small>
|
||||
</label>
|
||||
|
||||
<input type="text" name="throttle_lockout_time" class="form-control input-solid"
|
||||
value="{{ setting('throttle_lockout_time', 1) }}">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
@lang('Update')
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title mb-1">@lang('Two-Factor Authentication')</h5>
|
||||
|
||||
<small class="text-muted d-block mb-4">
|
||||
@lang('Enable/Disable Two-Factor Authentication for the application.')
|
||||
</small>
|
||||
|
||||
@if (setting('2fa.enabled'))
|
||||
<form method="POST" action="{{ route('settings.auth.2fa.disable') }}" id="auth-2fa-settings-form">
|
||||
@csrf
|
||||
<button type="submit"
|
||||
class="btn btn-danger"
|
||||
data-toggle="loader"
|
||||
data-loading-text="@lang('Disabling...')">
|
||||
@lang('Disable')
|
||||
</button>
|
||||
</form>
|
||||
@else
|
||||
<form method="POST" action="{{ route('settings.auth.2fa.enable') }}" id="auth-2fa-settings-form">
|
||||
@csrf
|
||||
<button type="submit"
|
||||
class="btn btn-primary"
|
||||
data-toggle="loader"
|
||||
data-loading-text="@lang('Enabling...')">
|
||||
@lang('Enable')
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user