Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
Showing only changes of commit 72a6aaec5b - Show all commits

View file

@ -23,12 +23,12 @@
{ {
if(!$request->getPeer()->isExternal()) 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()) 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]); SessionManager::updateFlow($request->getSession(), [SessionFlags::AUTHENTICATION_REQUIRED]);