mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
This fixes the controller signature error people are getting with LDAP logins (#9466)
This commit is contained in:
parent
d90abdf86f
commit
72a813f23d
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue