]> BookStack Code Mirror - bookstack/blobdiff - app/Api/ApiTokenGuard.php
Added testing coverage to API token auth
[bookstack] / app / Api / ApiTokenGuard.php
index cd9c3b178c7e0ae01bc9b436fdd24e1561e0c25f..ba0b4b5dd5160581a3e1b975445c643c60c5c46b 100644 (file)
@@ -150,4 +150,11 @@ class ApiTokenGuard implements Guard
         return Hash::check($credentials['secret'], $token->secret);
     }
 
+    /**
+     * "Log out" the currently authenticated user.
+     */
+    public function logout()
+    {
+        $this->user = null;
+    }
 }
\ No newline at end of file