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

Commit 63745a6

Browse files
committed
Don't explode twice
1 parent 31c3c49 commit 63745a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/WindowsAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle(Request $request, Closure $next)
5555
$username = explode('\\', $account);
5656

5757
if (count($username) === 2) {
58-
list($domain, $username) = explode('\\', $account);
58+
list($domain, $username) = $username;
5959
} else {
6060
$username = $username[key($username)];
6161
}

0 commit comments

Comments
 (0)