Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't reset blacklist expiration time #1616

Closed
wants to merge 3 commits into from
Closed

Don't reset blacklist expiration time #1616

wants to merge 3 commits into from

Conversation

mattmcdonald-uk
Copy link
Contributor

Currently, a blacklisted token can be used for an infinite amount of time when using the blacklist grace period, so long as a request is made at least once every x seconds (where x is the value of blacklist_grace_period).

This change ensures that the reset time on a blacklisted token is not reset every time a request is made.

@tymondesigns
Copy link
Owner

Sorry for the very late response, I think this is valid point and I'm happy to add it if you would be so kind to fix the tests? If not then I will pull this down and adjust myself when I have time

@mattmcdonald-uk
Copy link
Contributor Author

I've updated the tests to allows the get call, but this was introduced in mockery 1.0.0 so fails for PHP < 5.6.

Does PHP < 5.6 still need to be supported? Or do you know a better way to let the tests pass?

@tymondesigns tymondesigns mentioned this pull request Mar 14, 2019
@tymondesigns
Copy link
Owner

@mattmcdonald-uk I have pulled down your PR and fixed the issues here - see #1775

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