Closed mjamilasfihani closed 3 years ago
since this is for registration page and we need email also username data, how if we put the allowed field directly? not call the validFields as we do right now.
I got the answer for this issue https://github.com/lonnieezell/myth-auth/discussions/437#discussioncomment-1346648
https://github.com/lonnieezell/myth-auth/blob/46aec3ef426b23efc918b22496f83fedc5e9c962/src/Controllers/AuthController.php#L178
I must comment the
$validFields
from Auth.php if I want to use only email or username right? But at these line is using$this->config->validFields
so the validation for register will not work as I expect