Closed erikkraijenoord closed 1 year ago
To use Validation Placeholders securely, please remember to create a validation rule for the field you will use as a placeholder. https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_435.html#validation-placeholders
@erikkraijenoord If the error message is difficult to understand, please suggest a better message.
PHP Version
8.1
CodeIgniter4 Version
4.3.6
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
cli-server (PHP built-in webserver)
Database
MySQL 5.7.24
What happened?
Using the Myth Auth package to manage users, uppon saving their profile the validation inside the UserModel will check if the email is unique.
Saving this has issues on the
is_unique
validation, error message given is:No validation rules for the placeholder: id
Steps to Reproduce
Basic composer installation with latest CodeIgniter4, and the use of MythAuth version 1.2.1.
$validationRules
to process the request.On step 2 it fails already.
Expected Output
Saving the user without any issues.
Anything else?
Before upgrading CodeIgniter4 we didn't have any issues, seems to me like a recent change in the way this works?