diff options
author | Niels Weber <niels.weber@digia.com> | 2014-09-26 08:45:32 +0200 |
---|---|---|
committer | Niels Weber <niels.weber@digia.com> | 2014-09-26 09:51:11 +0200 |
commit | 69b32a01bdc3d58453475d3d142159a36103c406 (patch) | |
tree | 3930183cf043127f2834825838c0418c7b55f17a | |
parent | bee07cc08bfcef6067150e63ce231c39404660dc (diff) |
Prepend debug- to username in debug mode
So we can filter out those users later.
Change-Id: Idbc857454c9370b58f41a7116cbc2eac2a7696a2
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
-rw-r--r-- | src/applicationclient.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/applicationclient.cpp b/src/applicationclient.cpp index 63ed6bf..bb104f3 100644 --- a/src/applicationclient.cpp +++ b/src/applicationclient.cpp @@ -119,7 +119,11 @@ void ApplicationClient::getUserCredentials() void ApplicationClient::createUser() { //qDebug() << "Create User"; +#ifdef QT_DEBUG + currentUsername = "debug-" + m_userData->createUUID(); +#else currentUsername = m_userData->createUUID(); +#endif currentPassword = m_userData->createUUID(); QJsonObject query; query["objectType"] = QString::fromUtf8("users"); |