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

View File

@@ -71,6 +71,9 @@ class LoginController extends Controller
*/ */
public function login(Request $request) public function login(Request $request)
{ {
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 * Temporary bug fix for something that doesn't seem to work in
* AdLdap. * AdLdap.
@@ -79,8 +82,7 @@ class LoginController extends Controller
/** @var Adldap\Connections\Provider $provider */ /** @var Adldap\Connections\Provider $provider */
Adldap::getProvider('default')->setSchema(new $schema); Adldap::getProvider('default')->setSchema(new $schema);
}
Log::channel('audit')->info(sprintf('User is trying to login using "%s"', $request->get('email')));
$this->validateLogin($request); $this->validateLogin($request);
// If the class is using the ThrottlesLogins trait, we can automatically throttle // If the class is using the ThrottlesLogins trait, we can automatically throttle