Skip to content

Added method banned_until to know the date the user is banned. - #170

Closed
mtparet wants to merge 1 commit into
rack:masterfrom
ifeelgoods:4.4
Closed

mtparet wants to merge 1 commit into
rack:masterfrom
ifeelgoods:4.4

Conversation

@mtparet

@mtparet mtparet commented Feb 29, 2016

Copy link
Copy Markdown

Features

Added method banned_until to know the date the user is banned.

Added method banned_until
Conflicts:
	lib/rack/attack/cache.rb
	lib/rack/attack/fail2ban.rb
@mtparet mtparet changed the title Features Added method banned_until to know the date the user is banned. Added method banned_until to know the date the user is banned. Feb 29, 2016
@ktheory

ktheory commented Feb 29, 2016

Copy link
Copy Markdown
Collaborator

@mtparet: thanks for suggesting this.

Can you please clarify how this would be used?

Do you think you can make it work with memcached (which doesn't have a way to check TTL)?

Lastly, to get this merged, please rebase with a more useful commit message.

I suspect this'll be better implemented as a rack-attack extension rather than in the core library, so I'm closing for now. Feel free to re-open with an expanded description, and working tests.

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.

3 participants