Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 613205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:58:38+00:00 2026-05-13T17:58:38+00:00

My team is currently using Authlogic for user authentication, which disables a user’s account

  • 0

My team is currently using Authlogic for user authentication, which disables a user’s account after 6 failed_login_attempts. I want to re-enable such a user’s account after a 15-minute time period. The problem is that we are deploying to the Rails cloud host, Heroku, which offers only a one-hour cron job and a daily cron job. I seem to need a cron job that increments in a matter of minutes, which I don’t have, or I would have to freeze a thread to sit and wait the time out, which is not even going to be considered for obvious performance reasons.

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:58:38+00:00Added an answer on May 13, 2026 at 5:58 pm

    There’s actually a declarative way of doing this. In your UserSession class, among the options available is failed_login_ban_for, which checks the last updated_at (which is touched even for failed attempts) so a successful attempt 15 minutes after a bogus attempt, for example, will now succeed:

    class UserSession < Authlogic::Session::Base
      logout_on_timeout true
      consecutive_failed_logins_limit 5
      failed_login_ban_for 15.minutes
    end
    

    See the rdoc for more info: http://rdoc.info/projects/binarylogic/authlogic

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer return table.AsEnumerable() .Select(r => new KeyValuePair<long, string>(r.Field<long>("longFieldName"), r.Field<string>("stringFieldName"))) .ToArray(); May 16, 2026 at 9:14 am
  • Editorial Team
    Editorial Team added an answer You may not be able to assign CURRENT_TIMESTAMP to a… May 16, 2026 at 9:14 am
  • Editorial Team
    Editorial Team added an answer I'm pretty sure values aren't passed when you call .html… May 16, 2026 at 9:14 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

my team is currently using buildbot to automate overnight and continuous-integration builds and regression
I'm currently using Team Foundation Server 2008 as a source control and build engine.
We have a small 3 developer team that is currently using Subversion for our
We are currently using TFS 2008 with the Scrum for Team System template from
In Team City, we are currently using a command line build runner. While it
Need some help gathering thoughts on this issue. Our team is moving ahead with
Possible Duplicate: What are the benefits of using C# vs F# or F# vs
I'm facing a very simple issue but I can't find the right tool: We
I've used source controls for a few years (if you count the Source Safe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.