mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Merge pull request #3871 from nextcloud/display_proper_endpoint_in_warning
Display the right endpoint in the warning in case of error
This commit is contained in:
commit
91a9e82fc8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue