Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
{
|
{
|
||||||
if(!PeerInformationManager::fieldExists($request->getPeer(), $fieldName))
|
if(!PeerInformationManager::fieldExists($request->getPeer(), $fieldName))
|
||||||
{
|
{
|
||||||
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'The information field does not exist');
|
return $rpcRequest->produceResponse(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(DatabaseOperationException $e)
|
catch(DatabaseOperationException $e)
|
||||||
|
@ -45,6 +45,7 @@
|
||||||
throw new StandardRpcException('Failed to check if the information field exists', StandardError::INTERNAL_SERVER_ERROR, $e);
|
throw new StandardRpcException('Failed to check if the information field exists', StandardError::INTERNAL_SERVER_ERROR, $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent the removal of required fields
|
||||||
switch($fieldName)
|
switch($fieldName)
|
||||||
{
|
{
|
||||||
case InformationFieldName::DISPLAY_NAME:
|
case InformationFieldName::DISPLAY_NAME:
|
||||||
|
|
Loading…
Add table
Reference in a new issue