]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/LoginController.php
Changes as per code review, and fixes failing test cases.
[bookstack] / app / Http / Controllers / Auth / LoginController.php
index 791c265ad3b0a838491bb02f44f0d205e156bbe7..c0541c9e29c4c78fa32ef4197d5f7257e06eff3f 100644 (file)
@@ -103,7 +103,7 @@ class LoginController extends Controller
 
         // Sync LDAP groups if required
         if ($this->ldapService->shouldSyncGroups()) {
-            $this->ldapService->syncGroups($user);
+            $this->ldapService->syncGroups($user, $request->get($this->username()));
         }
 
         $path = session()->pull('url.intended', '/');