Filippo Bertilotti
7 days ago 4532f1c4e89a1c662ce15fee6bbf30650d632366
commit | author | age
0991a9 1 <?php
FB 2
3 namespace App\Http\Requests;
4
db6ed4 5 use App\Rules\Base64String;
0991a9 6 use Illuminate\Foundation\Http\FormRequest;
FB 7
8 class SSOFormRequest extends FormRequest
9 {
10     /**
11      * Determine if the user is authorized to make this request.
12      *
13      * @return bool
14      */
15     public function authorize()
16     {
17         return true;
18     }
19
20     /**
21      * Get the validation rules that apply to the request.
22      *
23      * @return array<string, mixed>
24      */
25     public function rules()
26     {
27         return [
db6ed4 28             'EmailAddress' => ['required', 'email', new ScriptCheck()],
0085dc 29             'Name' => 'required|not_regex:/<[^>]+?>/',
FB 30             'Surname' => 'required|not_regex:/<[^>]+?>/',
31             'sim_1' => 'digits_between:10,10|not_regex:/<[^>]+?>/'
0991a9 32         ];
FB 33     }
34 }