DirectoryTree / LdapRecord-Laravel

Multi-domain LDAP Authentication & Management for Laravel.
https://ldaprecord.com/docs/laravel/v3
MIT License
483 stars 51 forks source link

[Bug] Method rehashPasswordIfRequired calling when password_column is false on Laravel 11 #645

Closed marceloarklok closed 3 months ago

marceloarklok commented 3 months ago

Environment:

Describe the bug: The following error appears in Laravel 11: Column not found: 1054 Unknown column 'password' in 'field list'

The method above is calling even when password_column is false:

class:"Illuminate\\Auth\\EloquentUserProvider"
file: "\vendor\\directorytree\\ldaprecord-laravel\\src\\Auth\\DatabaseUserProvider.php"
function: "rehashPasswordIfRequired"
line: 209
stevebauman commented 3 months ago

Hi @marceloarklok,

Can you post your config? Also, are you caching your config files?

This feature is covered by tests, so this shouldn't be an issue with LdapRecord-Laravel:

https://github.com/DirectoryTree/LdapRecord-Laravel/blob/605e1bc3bd7f3bc6c33941d7059734ad13c9d291/tests/Unit/EloquentHydratorTest.php#L102-L111

stevebauman commented 3 months ago

Whoops scratch that -- I see the problem here, thanks!