ldc-legaulois/app/Http/Requests/CustomerUpdatePassword.php
Jérémy Munsch bca2c877bf
- bump exception handler
- Remove CRM Api V1 in favor of CRM Api V2
- client version 2.2.1
- updated customer fields + country list
- Moved unsubscribe.php to Specific controller
- refactor getUniquePseudo to Utils
- Moved Auth actions form CustomerController to AuthController
2021-10-21 10:35:37 +02:00

40 lines
891 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rules\Password;
class CustomerUpdatePassword extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return \auth('customer')->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'password_old' => 'required',
'password' => [
'required', 'confirmed', 'min:8', 'max:255',
Password::min(8)
->mixedCase()
->letters()
->numbers()
->symbols()
->uncompromised()
],
];
}
}