From 3014b0b97f05b5b43127879c003cfb026cec5828 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 31 Jan 2025 15:32:06 -0500 Subject: [PATCH] Removed unnecessary check --- .../Classes/StandardMethods/Verification/Authenticate.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Socialbox/Classes/StandardMethods/Verification/Authenticate.php b/src/Socialbox/Classes/StandardMethods/Verification/Authenticate.php index 2fe5438..c52d689 100644 --- a/src/Socialbox/Classes/StandardMethods/Verification/Authenticate.php +++ b/src/Socialbox/Classes/StandardMethods/Verification/Authenticate.php @@ -26,11 +26,6 @@ return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method'); } - if($request->getSession()->isAuthenticated()) - { - return $rpcRequest->produceError(StandardError::FORBIDDEN, 'External host is already authenticated'); - } - SessionManager::updateFlow($request->getSession(), [SessionFlags::AUTHENTICATION_REQUIRED]); } catch(Exception $e)