Skip to content

Commit

Permalink
Fix for network validation issues on wireless (fixes Issue nextcloud#…
Browse files Browse the repository at this point in the history
  • Loading branch information
owenjm committed Mar 22, 2023
1 parent 54a11e8 commit 56a9c52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/creds/webflowcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <QLabel>

#include "accessmanager.h"
#include "accountmanager.h"
#include "account.h"
#include "configfile.h"
#include "theme.h"
Expand Down Expand Up @@ -227,6 +228,10 @@ bool WebFlowCredentials::stillValid(QNetworkReply *reply) {
if (reply->error() != QNetworkReply::NoError) {
qCWarning(lcWebFlowCredentials()) << reply->error();
qCWarning(lcWebFlowCredentials()) << reply->errorString();
const auto accounts = AccountManager::instance()->accounts();
for (auto account : accounts) {
account->freshConnectionAttempt();
}
}
return (reply->error() != QNetworkReply::AuthenticationRequiredError);
}
Expand Down

0 comments on commit 56a9c52

Please sign in to comment.