Refactor VerificationAuthenticate to simplify external peer check in authentication method

https://github.com/nosial/Socialbox-PHP/issues/77
This commit is contained in:
netkas 2025-03-12 13:32:17 -04:00
parent e89833f20e
commit a433ad2593
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -21,7 +21,7 @@
{
try
{
if(!$request->getPeer()->isExternal())
if(!$request->isExternal())
{
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method');
}