Skip to content

Add feature to return only non-expired entries#304

Merged
pfn merged 5 commits intopfn:masterfrom
schrauger:hide-expired
Mar 7, 2017
Merged

Add feature to return only non-expired entries#304
pfn merged 5 commits intopfn:masterfrom
schrauger:hide-expired

Conversation

@schrauger
Copy link
Copy Markdown
Contributor

@schrauger schrauger commented Mar 7, 2017

This new feature lets the user return only entries that are current and valid. It excludes all entries that are expired (expiry date has happened).

It adds a checkbox to the General tab of KeePassHttp Options. I made sure that the checkboxes and other elements were pushed down by 23 pixels, keeping the padding consistent.

The date check is copied from KeePass's own source code, so it should be consistent with the main app's definition of an expired entry.

I also recompiled the plgx file to include the new feature. I tested it with both Firefox (PassIFox) and Chrome (chromeIPass) on Linux Mint 18. Edit I removed the plgx from the branch, as it looks like you don't want that included (per the other pull requests' comments).

I did not add a test.

Comment thread KeePassHttp/Handlers.cs Outdated

Func<PwEntry, bool> hideExpired = delegate(PwEntry e)
{
DateTime dtNow = DateTime.UtcNow;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix indentation

@pfn
Copy link
Copy Markdown
Owner

pfn commented Mar 7, 2017

looks good, just fix the minor space thing and I'll merge.

Thanks for the PR

@schrauger
Copy link
Copy Markdown
Contributor Author

I changed the one line that had tab indents to space indents.

@pfn pfn merged commit b0f3003 into pfn:master Mar 7, 2017
@pfn
Copy link
Copy Markdown
Owner

pfn commented Mar 7, 2017

thank you

@schrauger
Copy link
Copy Markdown
Contributor Author

Fixes #198

@schrauger
Copy link
Copy Markdown
Contributor Author

I just realized that when I removed the changed plgx file, it removed it completely. I imagine you'll recompile the file yourself, but right now, the file does not exist in the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants