diff --git a/src/Socialbox/Classes/StandardMethods/Authenticate.php b/src/Socialbox/Classes/StandardMethods/Authenticate.php index b78368b..0ede4b4 100644 --- a/src/Socialbox/Classes/StandardMethods/Authenticate.php +++ b/src/Socialbox/Classes/StandardMethods/Authenticate.php @@ -23,12 +23,12 @@ { if(!$request->getPeer()->isExternal()) { - return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate'); + return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method'); } if($request->getSession()->isAuthenticated()) { - return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Peer is already authenticated'); + return $rpcRequest->produceError(StandardError::FORBIDDEN, 'External host is already authenticated'); } SessionManager::updateFlow($request->getSession(), [SessionFlags::AUTHENTICATION_REQUIRED]);