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

[5.4] Use custom auth identifier column for "getAuthIdentifier" if set. #19038

Merged
merged 2 commits into from
May 3, 2017

Conversation

DFurnes
Copy link
Contributor

@DFurnes DFurnes commented May 3, 2017

The Authenticatable trait includes methods to get the auth identifier name and value, but the getAuthIdentifier function will always return the primary key even if the column name is overridden.

This pull request updates that function to return the value for a custom auth identifier column, like the retrieveById and retrieveByToken methods in the EloquentUserProvider.

@taylorotwell taylorotwell merged commit 4ce1926 into laravel:5.4 May 3, 2017
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

Successfully merging this pull request may close these issues.

2 participants