Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticate using username or email #565

Open
mar846 opened this issue Jun 9, 2022 · 0 comments
Open

Authenticate using username or email #565

mar846 opened this issue Jun 9, 2022 · 0 comments

Comments

@mar846
Copy link

mar846 commented Jun 9, 2022

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](#554 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant