summaryrefslogtreecommitdiff
path: root/src/enginio_client/enginioidentity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/enginio_client/enginioidentity.cpp')
-rw-r--r--src/enginio_client/enginioidentity.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/enginio_client/enginioidentity.cpp b/src/enginio_client/enginioidentity.cpp
index 56b8b90..31f38e1 100644
--- a/src/enginio_client/enginioidentity.cpp
+++ b/src/enginio_client/enginioidentity.cpp
@@ -224,11 +224,11 @@ public:
To authenticate an instance of EnginioClient called \a client such code may be used:
\code
- EnginioOAuth2Authentication identity;
- identity.setUser(_user);
- identity.setPassword(_user);
+ EnginioOAuth2Authentication *identity = new EnginioOAuth2Authentication(client);
+ identity->setUser(_user);
+ identity->setPassword(_password);
- client.setIdentity(&identity);
+ client->setIdentity(identity);
\endcode
Setting the identity will trigger an asynchronous request, resulting in EnginioClient::authenticationState()