SessionManager: Don't generate user tokens when checking the tokens
[lhc/web/wiklou.git] / includes / session / SessionBackend.php
index 67cbc6d..1c743dd 100644 (file)
@@ -544,7 +544,7 @@ final class SessionBackend {
                // Ensure the user has a token
                // @codeCoverageIgnoreStart
                $anon = $this->user->isAnon();
-               if ( !$anon && !$this->user->getToken() ) {
+               if ( !$anon && !$this->user->getToken( false ) ) {
                        $this->logger->debug(
                                "SessionBackend $this->id creating token for user {$this->user} on save"
                        );