This doesn't work:
$user = User::find()->email("bob@example.com")->one();
if ($user->authenticate("myClearTextPassword")) {
// This is never true, so you never get here
}
Is this method broken, or am I using it incorrectly?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this community
$user->authError
return after you call the authenticate method?invalid_credentials
, even when the password is correct.true
?