- 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
43 lines
951 B
PHP
43 lines
951 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rules\Password;
|
|
|
|
class ResetCustomerPassword extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
$this->merge([
|
|
'token' => $this->token
|
|
]);
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'token' => 'exists:password_resets,token',
|
|
'password' => [
|
|
'required', 'confirmed', 'min:8', 'max:255',
|
|
Password::min(8)
|
|
->mixedCase()
|
|
->letters()
|
|
->numbers()
|
|
->symbols()
|
|
->uncompromised()
|
|
]
|
|
];
|
|
}
|
|
}
|