Christy, Welcome to the wonderful world of CF, speaking for everyone on
the list we hope you enjoy it and will stay and even recruit some friends.
Regarding you problem, check out
http://www.teratech.com/coldcuts/cutdetail.cfm?cutid=291
Doug
Christy wrote:
>I'm taking over a CF application that somebody else
>wrote, and I'm very new to it. I've been able to make
>a few of the necessary changes, but now I'm stumped.
>
>I want to be able to lock the user out after 3
>incorrect attempts to log in. I have the following
>code - first is the code to handle incorrect usernames
>and passwords, then is the session info that is set
>when the user logs in. Do I need to add code in here
>somewhere to display a message after 3 attempts to log
>in?
>
>Thanks!
>
><cfif #MemberName# IS ""><br>
>You must provide a username!
><a href="" here to try again.</a><br>
><cfset error="1">
>
><cfelseif #MemberPassword# IS ""><br>
>You must provide a password!
><a href="" here to try again.</a><br>
><cfset error="1">
>
><cfelseif login.username IS "" >br>
>There was a problem with that username and password!
><a href="" here to try again.</a><br>
><cfset error="1">
><cfelse>
>
><CFLOCK TIMEOUT="60" NAME="#session.sessionID#"
>TYPE="Exclusive">
><!--- set session variable session.name --->
><CFSET session.name= Membername>
><CFSET session.accesslevel = login.Accesslevel>
><CFSET session.area1 = login.area1>
><CFSET session.area2 = login.area2>
></CFLOCK>
>
></cfif>
>
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- locking user out after 3 incorrect attempts to log in Christy
- RE: locking user out after 3 incorrect attempts to l... Doug James
- RE: locking user out after 3 incorrect attempts to l... Pascal Peters
- RE: locking user out after 3 incorrect attempts ... Steve Nelson
- Re: locking user out after 3 incorrect attem... G
- RE: locking user out after 3 incorrect a... Mark W. Breneman
- RE: locking user out after 3 incorrect a... Matt Robertson
- Re: locking user out after 3 incorr... Mark Drew
- Re: locking user out after 3 incorrect attempts to l... Casey C Cook
- Re: locking user out after 3 incorrect attempts to l... Christy Carter