Skip to content

Commit

Permalink
Merge branch 'hotfix/4.7.12.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Feb 16, 2019
2 parents 87c8b3d + 738f6ed commit fdf147d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,18 @@ public function __construct()
*/
public function login(Request $request)
{
/**
* Temporary bug fix for something that doesn't seem to work in
* AdLdap.
*/
$schema = config('ldap.connections.default.schema');
Log::channel('audit')->info(sprintf('User is trying to login using "%s"', $request->get('email')));

/** @var Adldap\Connections\Provider $provider */
Adldap::getProvider('default')->setSchema(new $schema);
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');

Log::channel('audit')->info(sprintf('User is trying to login using "%s"', $request->get('email')));
/** @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
Expand Down

0 comments on commit fdf147d

Please sign in to comment.