DamongoCoder
DamongoCoder

Reputation: 431

Sentry authenticate by username in Laravel

How do I configure sentry to authenticate by username rather than by email. All the examples I am finding all authenticate by email. Any help much appreciated.

Upvotes: 0

Views: 497

Answers (1)

Antonio Carlos Ribeiro
Antonio Carlos Ribeiro

Reputation: 87769

First publish the Sentry config:

php artisan config:publish cartalyst/sentry

Then open file app\config\packages\cartalyst\sentry\config.php and edit:

'login_attribute' => 'email',

Upvotes: 1

Related Questions