On 5 January 2012 09:47, Daisy Di <li...@ruby-forum.com> 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 -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.