Commit graph

72 commits

Author SHA1 Message Date
Visman
5dc6ecfa23 Core\Validator: Add support for multidimensional rules arrays 2023-11-14 20:21:51 +07:00
Visman
0cf80df852 Core\Validator: Fix addRules() method for array 2023-10-14 22:32:59 +07:00
Visman
71dda154a5 Consider user time zone in Validator\date 2023-09-28 15:55:33 +07:00
Visman
304a1d720f Cnage Validator - date
Add error: The :alias field contains the time before the start of the Unix epoch.
2023-09-27 19:04:08 +07:00
Visman
4c78b07a95 Change Csrf\verify() method + token rule in Validator to be able to set the token lifetime 2023-07-27 14:22:35 +07:00
Visman
ced54003f8 Update ISWEV to constants 2023-05-13 13:31:15 +07:00
Visman
5528d0480b Up min PHP version from 7.3 to 8.0 2023-04-27 19:36:15 +07:00
Visman
5af26f9c89 Update addRules() method in Validator
Now the rule can be specified as an array. Sometimes needed for 'in' and 'not_in'.
2023-04-26 16:58:09 +07:00
Visman
3b05511854 Update Validator.php 2023-03-29 22:32:07 +07:00
Visman
587202bd29 Update Core\Validator
Separately handle the situation similar to the previous commit.
2022-01-16 16:50:56 +07:00
Visman
72da9699dd Fix Core\Validator
Fix string:null rule.
2022-01-14 19:47:37 +07:00
Visman
cf338ceeaf Update Core\Validator 2022-01-12 20:52:42 +07:00
Visman
cc4512309e Update Core\Validator 2022-01-12 13:02:29 +07:00
Visman
6af439c843 Update Core\Validator
Change validation rules.
2022-01-11 22:18:36 +07:00
Visman
8fa2e7e708 Delete comments that do not make sense 2022-01-10 18:53:52 +07:00
Visman
897700a15e Minor changes 2021-03-12 15:08:39 +07:00
Visman
6577e5aa8f Update Core\Validator
Now addError() method can take an array with the template text and variables.
2021-03-12 15:02:38 +07:00
Visman
be429ea4c3 Update Core\Validator for new Fork\__() function
Now an error array contains untranslated strings or template arrays.
Translation must be made in the output template iswev.
2021-03-11 23:23:59 +07:00
Visman
ae507d5a6d Fix files for new Fork\__() function 2021-03-11 21:39:16 +07:00
Visman
39b1ba5998 Extract method getErrorsWithoutType() from getErrors() 2021-02-10 15:51:15 +07:00
Visman
796a2a4db1 Update Core\Validator
Change getErrors() method
2021-02-09 14:42:41 +07:00
Visman
0c2095e369 Add spaces to code O_o 2021-01-27 19:19:32 +07:00
Visman
e0b08758f1 Update Core\Validator
Change the getData() method to be able to exclude the specified elements.
2021-01-19 00:48:41 +07:00
Visman
e83ef43cb6 Copyright 2020-12-21 17:40:19 +07:00
Visman
fdbaa05f51 Fix Core\Validator for array
Another 100500 fix O_o.
2020-11-20 23:54:25 +07:00
Visman
c2f9164cc1 Fix Core\Validator for array
Restore the structure of the array according to the form validation rules.
2020-11-19 16:05:30 +07:00
Visman
b6f208eb56 Fix Core\Validator for array 2020-11-17 13:33:07 +07:00
Visman
bd0ca920fd Add strict mode 1 2020-10-14 20:01:43 +07:00
Visman
b3df3fc916 Fix vulnerability of lack of token
Csrf\getError() returns null if there is no token field. As a result, the check is aborted without adding an error.
2020-10-12 17:13:02 +07:00
Visman
2df6800f6f Change Core\Csrf
Add getError() method.
Returns the error text for verify(): 'Expired token' or 'Bad token'.
2020-10-10 15:30:00 +07:00
Visman
74c5b7d7a5 Add strict mode for validation 2020-10-10 11:15:07 +07:00
Visman
aa7b179e38 Add field rule setting via array 2020-10-07 20:56:27 +07:00
Visman
e8157cc802 Rename Core\Validators 2020-10-07 17:56:12 +07:00
Visman
b162126a22 Update Core\Validator
Partially changed the logic of rules processing.
2020-10-07 17:41:23 +07:00
Visman
586e7c8197 Update Validator.php
Add the ability to escape the delimiter in the rule
2020-09-29 18:08:52 +07:00
Visman
8dc15138eb emove phpDocumentor syntax from comments 2020-09-12 23:22:32 +07:00
Visman
ce3dfbaf10 Refine the return type 2020-08-07 00:40:41 +07:00
Visman
0799853a93 Coding style 2020-07-03 15:28:10 +07:00
Visman
8eb4b6ea9c Coding style 2020-07-01 21:40:10 +07:00
Visman
8131e14e56 Coding style 2020-06-28 12:10:59 +07:00
Visman
b88bdd2b31 Null coalescing operator 2020-05-26 10:52:52 +07:00
Visman
e87a75cd6d Add declaration of argument types and return values 2020-05-24 18:30:48 +07:00
Visman
871586be8a Add report page 2020-05-23 12:22:21 +07:00
Visman
54d1e7d537 Minor fix 2019-12-29 16:52:39 +07:00
Visman
a6180e05f9 Minor editing of validator messages 2019-12-28 15:19:27 +07:00
Visman
ebdfe382d9 For PHP 7.4
https://www.php.net/manual/migration74.deprecated.php#migration74.deprecated.core.array-string-access-curly-brace
2019-10-11 19:32:26 +07:00
Visman
3e1fd25349 * Validator returns float number for the numeric rule 2018-11-01 16:08:31 +07:00
Visman
a676d3e052 * Changed the behavior of the validator for the string:trim
Now string:trim returns an empty string, not NULL for an empty field.
2018-11-01 16:03:35 +07:00
Visman
5f5dba3ff7 * Fix Illegal string offset for PHP 7.1 2018-09-15 21:58:07 +07:00
Visman
a12aa57e26 2018-04-22 2018-04-22 16:57:23 +07:00