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 fdf9da12aa - Show all commits

View file

@ -26,7 +26,14 @@
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method'); return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method');
} }
SessionManager::updateFlow($request->getSession(), [SessionFlags::AUTHENTICATION_REQUIRED]); $session = $request->getSession();
if(!$session->flagExists(SessionFlags::AUTHENTICATION_REQUIRED))
{
return $rpcRequest->produceResponse(false);
}
SessionManager::updateFlow($session, [SessionFlags::AUTHENTICATION_REQUIRED]);
} }
catch(Exception $e) catch(Exception $e)
{ {