Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 8 additions and 1 deletions
|
@ -26,7 +26,14 @@
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue