mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Also prepend appName if id is empty
This commit is contained in:
parent
8468e70cba
commit
d60eb67c2e
@ -50,6 +50,7 @@ QString AbstractCredentials::keychainKey(const QString &url, const QString &user
|
||||
QString key = user + QLatin1Char(':') + u;
|
||||
if (!accountId.isEmpty()) {
|
||||
key += QLatin1Char(':') + accountId;
|
||||
}
|
||||
#ifdef Q_OS_WIN
|
||||
// On Windows the credential keys aren't namespaced properly
|
||||
// by qtkeychain. To work around that we manually add namespacing
|
||||
@ -59,7 +60,6 @@ QString AbstractCredentials::keychainKey(const QString &url, const QString &user
|
||||
// migrated to new namespaced keys on windows for 2.4.
|
||||
key.prepend(QCoreApplication::applicationName() + "_");
|
||||
#endif
|
||||
}
|
||||
return key;
|
||||
}
|
||||
} // namespace OCC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user