diff options
-rw-r--r-- | connection.cpp | 2 | ||||
-rw-r--r-- | jobs/passwordlogin.cpp | 2 |
2 files changed, 2 insertions, 2 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(); } diff --git a/jobs/passwordlogin.cpp b/jobs/passwordlogin.cpp index d989815f..6cf45b26 100644 --- a/jobs/passwordlogin.cpp +++ b/jobs/passwordlogin.cpp @@ -88,9 +88,7 @@ void PasswordLogin::parseJson(const QJsonDocument& data) fail( BaseJob::UserDefinedError, "Unexpected data" ); } d->returned_token = json.value("access_token").toString(); - qDebug() << d->returned_token; d->returned_server = json.value("home_server").toString(); d->returned_id = json.value("user_id").toString(); - connection()->setToken(d->returned_token); emitResult(); } |