Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Can't login with password sync disabled #108

Closed
miken32 opened this issue May 20, 2016 · 2 comments
Closed

Can't login with password sync disabled #108

miken32 opened this issue May 20, 2016 · 2 comments
Labels

Comments

@miken32
Copy link

miken32 commented May 20, 2016

Very (very) new to Laravel, so apologies if this is something simple.I'm working with the intro tutorial for now, and I configured everything for LDAP authentication, using the instructions for Laravel 5.2. When attempting to login, I could see my server being queried, and LDAP users being inserted into the database, but I kept getting redirected back to the login page. When I changed password sync to true, it started working just fine.

@stevebauman
Copy link
Member

stevebauman commented May 20, 2016

This isn't an issue with your application. This is a bug on my end, thanks for the report!

This is due to the validateCredentials() method here: https://github.com/laravel/framework/blob/7642f12d7199456e5bf634a3e449023e3ee0160d/src/Illuminate/Auth/EloquentUserProvider.php#L114

Since a random password is assigned on each login for the user database record (when password syn is disabled), when the stock eloquent driver checks the submitted password against the hashed database value, it returns false (to be expected).

Fix will be out momentarily.

@stevebauman
Copy link
Member

Fixed in v2.0.10, please run composer update, thanks!

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

No branches or pull requests

2 participants