isDisplayNameRequired()) { return $rpcRequest->produceError(StandardError::FORBIDDEN, 'A display name is required for this server'); } try { // Set the password RegisteredPeerManager::deleteDisplayName($request->getPeer()); } catch(Exception $e) { throw new StandardException('Failed to set password due to an internal exception', StandardError::INTERNAL_SERVER_ERROR, $e); } return $rpcRequest->produceResponse(true); } }