From 72a6aaec5bafdb0fa01a8b38b0ba218ad66699dc Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 10 Jan 2025 18:18:17 -0500 Subject: [PATCH] Update error messages in Authenticate.php for clarity --- src/Socialbox/Classes/StandardMethods/Authenticate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]);