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 authored and claucambra committed Apr 24, 2023
1 parent 8ef2154 commit 064d518
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 064d518

Please sign in to comment.