This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
workaround for: problem with two factor authentication #894 #914
Open
Description
Login works, but automatic user import do not works.
/**
* workaround for two factor auth
*/
class LaravelLdapUserProvider extends DatabaseUserProvider
{
public function validateCredentials(Authenticatable $model, array $credentials)
{
if (!$this->retrieveByCredentials([
config('fortify.username') => $model->name,
'password' => $credentials['password'],
])) {
return false;
}
return parent::validateCredentials($model, $credentials);
}
}
Metadata
Metadata
Assignees
Labels
No labels