Removed unnecessary check

This commit is contained in:
netkas 2025-01-31 15:32:06 -05:00
parent 8c2cbf48d5
commit 3014b0b97f

View file

@ -26,11 +26,6 @@
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method'); 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]); SessionManager::updateFlow($request->getSession(), [SessionFlags::AUTHENTICATION_REQUIRED]);
} }
catch(Exception $e) catch(Exception $e)