diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 8e8c0cd..41af9f2 100755 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -94,7 +94,7 @@ class RegisterController extends Controller break; case 'medium': - $password = ['required', 'string', 'confirmed', 'regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{10,}$/']; + $password = ['required', 'string', 'confirmed', 'regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{12,}$/']; break; case 'high': diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 299c279..f04ad44 100755 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -14,27 +14,41 @@ {{ config('adminlte.logo') }}

{{__('messages.register_acc')}}

-
- × -

{{__('messages.pwsec.line1')}}

-

{{__('messages.pwsec.line2')}}

+ + @if(\App\Facades\Options::getOption('pw_security_policy') !== 'off') + +
+ × +

{{__('messages.pwsec.line1')}}

+

{{__('messages.pwsec.line2')}}

+ +

{{__('messages.pwsec.line3')}}

+ +
+ + @endif -

{{__('messages.pwsec.line3')}}

- -
@csrf
@@ -54,10 +68,14 @@
-
- - -
+ + @if(\App\Facades\Options::getOption('requireGameLicense') && \App\Facades\Options::getOption('currentGame') == 'MINECRAFT') +
+ + +
+ @endif +
diff --git a/resources/views/dashboard/administration/settings.blade.php b/resources/views/dashboard/administration/settings.blade.php index 39a77ea..8bccefa 100755 --- a/resources/views/dashboard/administration/settings.blade.php +++ b/resources/views/dashboard/administration/settings.blade.php @@ -90,6 +90,26 @@ + @if($security['secPolicy'] == 'off') + +
+ +
+ +
+ +

DANGER: Insecure security policy

+ +

Your current password security policy is set to off. This allows users to choose potentially unsafe passwords.

+

We strongly recommend you update this value to Low or Medium.

+ +
+ +
+ +
+ + @endif