From 91627decbee79bbfdacb0366d62e9470db2d60d2 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Sat, 18 Jul 2020 02:45:15 +0100 Subject: [PATCH] Added Heroku Procfile Also changed required password length for new users --- Procfile | 1 + app/Http/Controllers/Auth/RegisterController.php | 2 +- resources/views/auth/register.blade.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..48aab52 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: vendor/bin/heroku-php-apache2 public/ diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 9def114..c6b3364 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -70,7 +70,7 @@ class RegisterController extends Controller 'uuid' => ['required', 'string', 'unique:users', 'min:32', 'max:32'], 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], - 'password' => ['required', 'string', 'min:6', 'confirmed', 'regex:/^.*(?=.{3,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\d\x])(?=.*[!$#%]).*$/'], + 'password' => ['required', 'string', 'min:10', 'confirmed', 'regex:/^.*(?=.{3,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\d\x])(?=.*[!$#%]).*$/'], ], [ 'uuid.required' => 'Please enter a valid (and Premium) Minecraft username! We do not support cracked users.' ]); diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 2221a50..8458eed 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -22,7 +22,7 @@

Passwords must be a combination of: