Browse Source

Added Heroku Procfile

Also changed required password length for new users
l10n_master
Miguel N. 10 months ago
parent
commit
91627decbe
  1. 1
      Procfile
  2. 2
      app/Http/Controllers/Auth/RegisterController.php
  3. 2
      resources/views/auth/register.blade.php

1
Procfile

@ -0,0 +1 @@
web: vendor/bin/heroku-php-apache2 public/

2
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.'
]);

2
resources/views/auth/register.blade.php

@ -22,7 +22,7 @@
<p>Passwords must be a combination of: </p>
<ul>
<li>
A minimum of 6 characters;
A minimum of 10 characters;
</li>
<li>
At least 3 uppercase characters;

Loading…
Cancel
Save