diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-05-27 16:49:15 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-05-27 16:49:15 +0900 |
commit | a2c08f646bf2d6fe0ce385940b5c1bb7b430d5fb (patch) | |
tree | 28a6876b08ce27757ffe3bddb053916768ce6426 /connection.cpp | |
parent | d5df4568d34487aea519ae97dd1666927dcfb62b (diff) | |
download | libquotient-a2c08f646bf2d6fe0ce385940b5c1bb7b430d5fb.tar.gz libquotient-a2c08f646bf2d6fe0ce385940b5c1bb7b430d5fb.zip |
Don't assign the token twice
In a case when authentication doesn't even happen, PasswordLogin job
won't run. The better place to assign (and log) the token is in
Connection::connectWithToken(), therefore.
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/connection.cpp b/connection.cpp index a219f1da..69121930 100644 --- a/connection.cpp +++ b/connection.cpp @@ -79,6 +79,8 @@ void Connection::connectWithToken(QString userId, QString token) d->isConnected = true; d->userId = userId; d->data->setToken(token); + qDebug() << "Connected with token:"; + qDebug() << token; emit connected(); } |