This fixes the controller signature error people are getting with LDAP logins (#9466)

This commit is contained in:
Brady Wetherington 2021-04-21 10:23:32 -07:00 committed by GitHub
parent d90abdf86f
commit 72a813f23d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,8 +140,9 @@ class LoginController extends Controller
*
* @throws \Exception
*/
private function loginViaLdap(LdapAd $ldap, Request $request): User
private function loginViaLdap(Request $request): User
{
$ldap = \App::make( LdapAd::class);
try {
return $ldap->ldapLogin($request->input('username'), $request->input('password'));
} catch (\Exception $ex) {