Add a column in your user table for the number of bad login attempts. 
Every time there is a failed login for that user, increment the value. 
Do not allow that user to login if their failed count has exceeded your
threshold.  REMEMBER to zero it back out when they log in successfully.

Of course, this approach will require some method for them to unlock
their account. 

~Brad


-------- Original Message --------
Subject: how to detect user login attempts
From: "Nathan Chen" <[email protected]>
Date: Tue, October 20, 2009 3:34 pm
To: cf-talk <[email protected]>


Hi, All:


This might have been asked but I am not experienced CF programmer so I
need help. I am building a login module that requires detecting user
login attempts. After the user fails after three tries, the acct will be
suspended. Has anything been done, e.g, tags, components, custom tag?
Can anyone point me to the right direction? Thanks.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to