Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function rules(): array |
||
15 | { |
||
16 | return [ |
||
17 | //'token' => 'required|regex:/^([0-9a-f]*)$/', |
||
18 | //'expiration' => 'required|date_format:U', |
||
19 | // Do not validate `token` or `expiration` here since at this stage we can NOT generate viewable |
||
20 | // error, and it is been processed in the controller through EmailVerificationBroker anyway |
||
21 | 'email' => 'required|email|min:3|max:150|exists:'.config('cortex.auth.tables.members').',email', |
||
22 | 'password' => 'required|confirmed|min:'.config('cortex.auth.password_min_chars'), |
||
23 | ]; |
||
24 | } |
||
25 | } |
||
26 |