lonnieezell / myth-auth

One-stop Auth package for CodeIgniter 4
MIT License
634 stars 207 forks source link

ErrorException Trying to get property 'password_hash' of non-object #482

Closed Seversonic closed 2 years ago

Seversonic commented 2 years ago

Im fairly sure this is a configuration issue on my end, but Im relatively new and not sure where to look or what information to provide to troubleshoot.

I am able to create users, but when I attempt to login, I get this error.

I'm running codeigniter 4, and have disabled the email authorization, and limited the password validation (same error no matter what's blocked out there) public $requireActivation = null; public $activeResetter = null;

        'Myth\Auth\Authentication\Passwords\CompositionValidator',
        //'Myth\Auth\Authentication\Passwords\NothingPersonalValidator',
        //'Myth\Auth\Authentication\Passwords\DictionaryValidator',
        // 'Myth\Auth\Authentication\Passwords\PwnedValidator',
    ];

Everything else seems to work well, trying to test login redirection right now, but cant get past this error.

image

When I look at the users tables, the password_hash field is empty, but not NULL. image

When trying to login with an incorrect password, it knows it's wrong and shows the wrong password popup