Commit 6fa81987 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

AccountManager: provide scopes for new authentication

parent e3b5b3f9
Pipeline #38531 passed with stage
in 10 minutes and 39 seconds
......@@ -219,7 +219,7 @@ AccountPromise *AccountManager::getAccount(const QString &apiKey, const QString
if (d->compareScopes(account->scopes(), scopes)) {
// Don't hand out obviously expired tokens
if (account->expireDateTime() <= QDateTime::currentDateTime()) {
d->updateAccount(promise, apiKey, apiSecret, account, {});
d->updateAccount(promise, apiKey, apiSecret, account, scopes);
} else {
promise->d->setAccount(account);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment