diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 2c44ffeee5..f6c0039571 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1580,7 +1580,6 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') $sessionUpgrade = true; } - $sessions = $user->getAttribute('sessions', []); $current = $user->sessionVerify($store->getProperty('secret', ''), $proofForToken); if ($current) { // Delete current session of new one.