[Rails] Re: lock the sign in account when login failed more than 5 times

2012-01-06 Thread Christian Bautista
If you are just trying to restrict or prevent login after five times of failure its really no need to create a database for it. but use cookies and put some values in it and set the time when it will expire. after that a if statement that will redirect the user into other page or just use a disable

Re: [Rails] Re: lock the sign in account when login failed more than 5 times

2012-01-06 Thread Colin Law
On 6 January 2012 01:22, Daisy Di wrote: > Colin Law wrote in post #1039527: >> On 5 January 2012 09:47, Daisy Di 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

[Rails] Re: lock the sign in account when login failed more than 5 times

2012-01-05 Thread Daisy Di
Colin Law wrote in post #1039527: > On 5 January 2012 09:47, Daisy Di 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,ti