mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
set error to response if list is empty (avoid ChromeIPass hanging)
This commit is contained in:
parent
3eb4b3b208
commit
c736ba7059
@ -75,15 +75,20 @@ void Server::getLogins(const Request &r, Response *protocolResp)
|
|||||||
if (!r.CheckVerifier(key))
|
if (!r.CheckVerifier(key))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
protocolResp->setSuccess();
|
|
||||||
protocolResp->setId(r.id());
|
protocolResp->setId(r.id());
|
||||||
protocolResp->setVerifier(key);
|
protocolResp->setVerifier(key);
|
||||||
QList<Entry> entries = findMatchingEntries(r.id(), r.url(), r.submitUrl(), r.realm()); //TODO: filtering, request confirmation [in db adaptation layer?]
|
QList<Entry> entries = findMatchingEntries(r.id(), r.url(), r.submitUrl(), r.realm()); //TODO: filtering, request confirmation [in db adaptation layer?]
|
||||||
|
if (entries.count() == 0) {
|
||||||
|
protocolResp->setError("url not found!");
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (r.sortSelection()) {
|
if (r.sortSelection()) {
|
||||||
//TODO: sorting (in db adaptation layer? here?)
|
//TODO: sorting (in db adaptation layer? here?)
|
||||||
}
|
}
|
||||||
|
protocolResp->setSuccess();
|
||||||
protocolResp->setEntries(entries);
|
protocolResp->setEntries(entries);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Server::getLoginsCount(const Request &r, Response *protocolResp)
|
void Server::getLoginsCount(const Request &r, Response *protocolResp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user