Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 5e41c0c

Browse files
committed
Remove unnecessary overwrite
1 parent 0b92e33 commit 5e41c0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Middleware/WindowsAuthenticate.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function handle(Request $request, Closure $next)
4545
// Retrieve the SSO login attribute.
4646
$auth = $this->getWindowsAuthAttribute();
4747

48+
// Retrieve the SSO input key.
4849
$key = key($auth);
4950

5051
// Handle Windows Authentication.
@@ -56,9 +57,6 @@ public function handle(Request $request, Closure $next)
5657
// Create a new user LDAP user query.
5758
$query = $this->newAdldapUserQuery();
5859

59-
// Get the input key
60-
$key = key($auth);
61-
6260
// Filter the query by the username attribute
6361
$query->whereEquals($key, $username);
6462

0 commit comments

Comments
 (0)