aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/accountregistry.cpp3
-rw-r--r--lib/accountregistry.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/accountregistry.cpp b/lib/accountregistry.cpp
index 5322ee80..9b148b51 100644
--- a/lib/accountregistry.cpp
+++ b/lib/accountregistry.cpp
@@ -102,6 +102,9 @@ void AccountRegistry::invokeLogin()
connect(connection, &Connection::loginError, this, [this, connection](const QString& error, const QString& details) {
emit loginError(connection, error, details);
});
+ connect(connection, &Connection::resolveError, this, [this, connection](QString error) {
+ emit resolveError(connection, error);
+ });
connection->assumeIdentity(account.userId(), accessTokenLoadingJob->binaryData(), account.deviceId());
});
}
diff --git a/lib/accountregistry.h b/lib/accountregistry.h
index 99827b73..38cfe6c6 100644
--- a/lib/accountregistry.h
+++ b/lib/accountregistry.h
@@ -78,6 +78,8 @@ Q_SIGNALS:
void keychainError(QKeychain::Error error);
void loginError(Connection* connection, QString message, QString details);
+ void resolveError(Connection* connection, QString error);
+
private:
QKeychain::ReadPasswordJob* loadAccessTokenFromKeychain(const QString &userId);
QStringList m_accountsLoading;