Colin Law wrote in post #1039527: > On 5 January 2012 09:47, Daisy Di <[email protected]> wrote: >> Hi all >> i have two table,member and failed_times,the member table is designed by >> customer which i cant modify anything, but the failed_times is created >> by myself.the columns in the failed_times are id,mbr_id,times, now i can >> calculate the login failed times and save it into failed_times table, >> but i am not sure how to lock the sign in account that user can not try >> to login again. >> Any good idea? > > In the login code just test the count and prevent login if necessary. > > Colin
Hi Colin, How to prevent login? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

