sentinel icon indicating copy to clipboard operation
sentinel copied to clipboard

Authenticate using username or email

Open mar846 opened this issue 2 years ago • 0 comments

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

mar846 avatar Jun 09 '22 15:06 mar846