lonnieezell / myth-auth

One-stop Auth package for CodeIgniter 4
MIT License
634 stars 207 forks source link

Use only email for registration and username for login #446

Closed mjamilasfihani closed 3 years ago

mjamilasfihani commented 3 years ago

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

mjamilasfihani commented 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.

mjamilasfihani commented 3 years ago

I got the answer for this issue https://github.com/lonnieezell/myth-auth/discussions/437#discussioncomment-1346648