Refactor VerificationAuthenticate to simplify external peer check in authentication method
https://github.com/nosial/Socialbox-PHP/issues/77
This commit is contained in:
parent
e89833f20e
commit
a433ad2593
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue