3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 08:45:36 +00:00

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

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) {