This commit is contained in:
James Cole 2019-02-16 23:01:14 +01:00
parent 87c8b3d7c6
commit 738f6ed232

View File

@ -71,16 +71,18 @@ class LoginController extends Controller
*/
public function login(Request $request)
{
/**
* Temporary bug fix for something that doesn't seem to work in
* AdLdap.
*/
$schema = config('ldap.connections.default.schema');
/** @var Adldap\Connections\Provider $provider */
Adldap::getProvider('default')->setSchema(new $schema);
Log::channel('audit')->info(sprintf('User is trying to login using "%s"', $request->get('email')));
if ('ldap' === config('auth.providers.users.driver')) {
/**
* Temporary bug fix for something that doesn't seem to work in
* AdLdap.
*/
$schema = config('ldap.connections.default.schema');
/** @var Adldap\Connections\Provider $provider */
Adldap::getProvider('default')->setSchema(new $schema);
}
$this->validateLogin($request);
// If the class is using the ThrottlesLogins trait, we can automatically throttle