]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/security/LoginManager.php
lint: apply phpcbf to application/
[github/shaarli/Shaarli.git] / application / security / LoginManager.php
index 4946850b7ed9297bc24e04b6c642e1cf84c4f9c9..0f3154835d734d74c035f169035d9d684b50dcfb 100644 (file)
@@ -95,8 +95,6 @@ class LoginManager
             // The user client has a valid stay-signed-in cookie
             // Session information is updated with the current client information
             $this->sessionManager->storeLoginInfo($clientIpId);
-            $this->isLoggedIn = true;
-
         } elseif ($this->sessionManager->hasSessionExpired()
             || $this->sessionManager->hasClientIpChanged($clientIpId)
         ) {
@@ -105,6 +103,7 @@ class LoginManager
             return;
         }
 
+        $this->isLoggedIn = true;
         $this->sessionManager->extendSession();
     }