ruby on rails - How do I model a 15-minute time-out with limited cron access (on Heroku)? -


My team is currently using Authlogic for user authentication, which disables user account after 6 failed_ login_attempts I want to re-enable such user's account after a period of 15 minutes. The problem is that we are stationed in Rails Cloud Host, Heroku, which offers only one-hour cron jobs and daily cron jobs. I need a cron job which increments in a matter of minutes, which I do not have, or I have to stabilize the thread and wait for the time, which is not even considered for the reasons for the obvious performance is .

Do I have any other options to implement this specific user experience?

In fact there is a declarative way of doing this in your UserSession class, the available options are _login_ban_for , Which checks for the last updated (which is also touched for unsuccessful attempts), so a successful attempt, for example, will succeed now 15 minutes after the bogus attempt:

  Class UserSession & lt; See rdoc for more information:     


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -