Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-01-13 18:46:06 +0300
committerHannah von Reth <vonreth@kde.org>2022-01-14 12:05:41 +0300
commit310610ba87f16fb124ca36abf7f1cadc928c805a (patch)
tree93877a2af8529231774504b1b12651768a008a56 /src/gui/accountstate.cpp
parent1f8324b4cfdd0990d7030c224a29b36861f93565 (diff)
Improve the log message when renewing the credentials
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r--src/gui/accountstate.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp
index b50d3d424..9a42c0cc2 100644
--- a/src/gui/accountstate.cpp
+++ b/src/gui/accountstate.cpp
@@ -412,17 +412,20 @@ void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status sta
void AccountState::slotInvalidCredentials()
{
if (!_waitingForNewCredentials) {
- qCInfo(lcAccountState) << "Invalid credentials for" << _account->url().toString()
- << "asking user";
+ qCInfo(lcAccountState) << "Invalid credentials for" << _account->url().toString();
_waitingForNewCredentials = true;
if (account()->credentials()->ready()) {
account()->credentials()->invalidateToken();
}
if (auto creds = qobject_cast<HttpCredentials *>(account()->credentials())) {
- if (creds->refreshAccessToken())
+ qCInfo(lcAccountState) << "refreshing oauth";
+ if (creds->refreshAccessToken()) {
return;
+ }
+ qCInfo(lcAccountState) << "refreshing oauth failed";
}
+ qCInfo(lcAccountState) << "asking user";
account()->credentials()->askFromUser();
}
setState(AskingCredentials);