Просмотр исходного кода

Merge pull request #3871 from nextcloud/display_proper_endpoint_in_warning

Display the right endpoint in the warning in case of error
Kevin Ottens 4 лет назад
Родитель
Сommit
91a9e82fc8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/gui/creds/flow2auth.cpp

+ 1 - 1
src/gui/creds/flow2auth.cpp

@@ -100,7 +100,7 @@ void Flow2Auth::fetchNewToken(const TokenAction action)
             pollToken = json.value("poll").toObject().value("token").toString();
             pollEndpoint = json.value("poll").toObject().value("endpoint").toString();
             if (_enforceHttps && QUrl(pollEndpoint).scheme() != QStringLiteral("https")) {
-                qCWarning(lcFlow2auth) << "Can not poll endpoint because the returned url" << _pollEndpoint << "does not start with https";
+                qCWarning(lcFlow2auth) << "Can not poll endpoint because the returned url" << pollEndpoint << "does not start with https";
                 emit result(Error, tr("The polling URL does not start with HTTPS despite the login URL started with HTTPS. Login will not be possible because this might be a security issue. Please contact your administrator."));
                 return;
             }