Cloud storage: initial support for confirming the email PIN

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-07 09:54:28 -07:00
parent 318bf5cccc
commit a07376b534
6 changed files with 34 additions and 3 deletions

View file

@ -953,7 +953,10 @@ QNetworkReply* CloudStorageAuthenticate::authenticate(QString email, QString pas
void CloudStorageAuthenticate::uploadFinished()
{
qDebug() << "Completed connection with cloud storage backend, response" << reply->readAll();
QString cloudAuthReply(reply->readAll());
qDebug() << "Completed connection with cloud storage backend, response" << cloudAuthReply;
prefs.show_cloud_pin = (cloudAuthReply == "[VERIFY]");
emit finishedAuthenticate(prefs.show_cloud_pin);
}
void CloudStorageAuthenticate::uploadError(QNetworkReply::NetworkError error)