Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/app/Http/Requests/UpdatePasswordRequest.php
Назад
<?php namespace App\Http\Requests; use Gate; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Response; use Illuminate\Validation\Rule; use Illuminate\Validation\Rules\Password; class UpdatePasswordRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { // abort_if(Gate::denies('change_password'), Response::HTTP_FORBIDDEN, '403 Forbidden'); return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { // dd($this); return [ // 'password' => ['required', 'string', 'min:8','regex:/^.*(?=.{3,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\d\x])(?=.*[!$#%]).*$/', 'confirmed'], 'password' => [ 'required', 'confirmed', Password::min(8) ->mixedCase() ->letters() ->numbers() ->symbols(), // ->uncompromised(), 'max:255', ], ]; } public function messages() { return [ 'password.required' => 'Atleast 8 characters with numbers, letters and special characters are required in password field.', 'password.min' => 'Atleast 8 characters with numbers, letters and special characters are required in password field.', 'password.mixedCase'=>'Atleast 8 characters with numbers, letters and special characters are required in password field.', 'password.letters'=>'Atleast 8 characters with numbers, letters and special characters are required in password field.', 'password.numbers'=>'Atleast 8 characters with numbers, letters and special characters are required in password field.', 'password.symbols'=>'Atleast 8 characters with numbers, letters and special characters are required in password field.', ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка