]> BookStack Code Mirror - bookstack/blobdiff - app/Auth/Access/Guards/ExternalBaseSessionGuard.php
Addressed additional unsupported array spread operation
[bookstack] / app / Auth / Access / Guards / ExternalBaseSessionGuard.php
index 9c3b47e977dde54bca48f7a387cc4d3046bdac79..99bfd2e795ecd4f12198d21ea2ae97d39062af87 100644 (file)
@@ -186,12 +186,8 @@ class ExternalBaseSessionGuard implements StatefulGuard
      */
     public function loginUsingId($id, $remember = false)
     {
-        if (!is_null($user = $this->provider->retrieveById($id))) {
-            $this->login($user, $remember);
-
-            return $user;
-        }
-
+        // Always return false as to disable this method,
+        // Logins should route through LoginService.
         return false;
     }