sentinel
sentinel copied to clipboard
Authenticate using username or email
Your Environment
- OS and Version: MacOS v12.4
- PHP Version: 7.4.27
- Sentinel Version: ^5.0
Expected behaviour
Login with username or email
Actual behaviour
When I use DB::enableQueryLog(), I noticed that it only check for email only, not username as well. I've created custom model that extend Cartalyst\Sentinel\User\EloquentUser
and insert this code protected $loginNames = ['email', 'username'];
But it's not working. I've tried from [this link](https://github.com/cartalyst/sentinel/issues/554#issuecomment-805941671