Merge pull request #9244 from davidkelly/dk/noFingerprintWhenLoggedIn

Only send machine fingerprint when not logged in
This commit is contained in:
David Kelly 2016-12-21 08:45:34 -08:00 committed by GitHub
commit 173e04ae7b
2 changed files with 3 additions and 7 deletions

View file

@ -66,7 +66,6 @@
#include <ErrorDialog.h>
#include <FileScriptingInterface.h>
#include <Finally.h>
#include <FingerprintUtils.h>
#include <FramebufferCache.h>
#include <gpu/Batch.h>
#include <gpu/Context.h>
@ -614,9 +613,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
Model::setAbstractViewStateInterface(this); // The model class will sometimes need to know view state details from us
// TODO: This is temporary, while developing
FingerprintUtils::getMachineFingerprint();
// End TODO
auto nodeList = DependencyManager::get<NodeList>();
// Set up a watchdog thread to intentionally crash the application on deadlocks

View file

@ -373,9 +373,9 @@ void NodeList::sendDomainServerCheckIn() {
packetStream << hardwareAddress;
// add in machine fingerprint
QUuid machineFingerprint = FingerprintUtils::getMachineFingerprint();
packetStream << machineFingerprint;
// now add the machine fingerprint - a null UUID if logged in, real one if not logged in
auto accountManager = DependencyManager::get<AccountManager>();
packetStream << (accountManager->isLoggedIn() ? QUuid() : FingerprintUtils::getMachineFingerprint());
}
// pack our data to send to the domain-server including