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:
committed by
GitHub
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) {
|
||||
|
||||
Reference in New Issue
Block a user