Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,8 @@
|
||||||
class AddressBookAddContact extends Method
|
class AddressBookAddContact extends Method
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Adds a contact to the authenticated peer's address book
|
* Adds a contact to the authenticated peer's address book, returns True if the contact was added
|
||||||
|
* false if the contact already exists.
|
||||||
*
|
*
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
// Check if the contact already exists
|
// Check if the contact already exists
|
||||||
if(ContactManager::isContact($peer, $address))
|
if(ContactManager::isContact($peer, $address))
|
||||||
{
|
{
|
||||||
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Contact already exists');
|
return $rpcRequest->produceResponse(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the contact
|
// Create the contact
|
||||||
|
|
Loading…
Add table
Reference in a new issue