diff options
-rw-r--r-- | checkcloudconnection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/checkcloudconnection.cpp b/checkcloudconnection.cpp index be2a2fa18..f1555adc3 100644 --- a/checkcloudconnection.cpp +++ b/checkcloudconnection.cpp @@ -6,6 +6,7 @@ #include "pref.h" #include "helpers.h" +#include "subsurfacewebservices.h" #include "checkcloudconnection.h" @@ -29,6 +30,9 @@ bool CheckCloudConnection::checkServer() request.setRawHeader("Accept", "text/plain"); request.setRawHeader("User-Agent", getUserAgent().toUtf8()); request.setUrl(QString(prefs.cloud_base_url) + TEAPOT); + // now set up an authentication test + CloudStorageAuthenticate *csa = new CloudStorageAuthenticate(0); + csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password); QNetworkAccessManager *mgr = new QNetworkAccessManager(); reply = mgr->get(request); connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); |