mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-18 11:08:05 -04:00
parent
1becb6137a
commit
c46f3d37b1
1 changed files with 4 additions and 3 deletions
|
@ -847,13 +847,14 @@ QJsonObject BrowserService::prepareEntry(const Entry* entry)
|
||||||
BrowserService::Access
|
BrowserService::Access
|
||||||
BrowserService::checkAccess(const Entry* entry, const QString& host, const QString& submitHost, const QString& realm)
|
BrowserService::checkAccess(const Entry* entry, const QString& host, const QString& submitHost, const QString& realm)
|
||||||
{
|
{
|
||||||
|
if (entry->isExpired()) {
|
||||||
|
return browserSettings()->allowExpiredCredentials() ? Allowed : Denied;
|
||||||
|
}
|
||||||
|
|
||||||
BrowserEntryConfig config;
|
BrowserEntryConfig config;
|
||||||
if (!config.load(entry)) {
|
if (!config.load(entry)) {
|
||||||
return Unknown;
|
return Unknown;
|
||||||
}
|
}
|
||||||
if (entry->isExpired()) {
|
|
||||||
return browserSettings()->allowExpiredCredentials() ? Allowed : Denied;
|
|
||||||
}
|
|
||||||
if ((config.isAllowed(host)) && (submitHost.isEmpty() || config.isAllowed(submitHost))) {
|
if ((config.isAllowed(host)) && (submitHost.isEmpty() || config.isAllowed(submitHost))) {
|
||||||
return Allowed;
|
return Allowed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue