Skip to content

Commit

Permalink
FC-3028 discard login form object from tempobjectstore
Browse files Browse the repository at this point in the history
  • Loading branch information
justincarter committed Oct 1, 2015
1 parent 26c0cb1 commit f8ca5d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/security/FarcryUD.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@
<cfset var dateTolerance = 0 />

<cfimport taglib="/farcry/core/tags/formtools" prefix="ft" />



<!--- For backward compatability, check for userlogin and password in form. This should be removed once we're willing to not support pre 4.1 login templates --->
<cfif structkeyexists(form,"userlogin") and structkeyexists(form,"password")>
<cfset qUser = queryUserPassword(form.userlogin,form.password) />
Expand All @@ -110,10 +109,12 @@
<ft:processformObjects typename="#getLoginForm()#">
<cfset qUser = queryUserPassword(stProperties.username,stProperties.password) />
<cfset stResult.userid = trim(stProperties.username) />
<!--- discard form object from session --->
<ft:break>
</ft:processformObjects>
</ft:processform>
</cfif>

<!--- If (somehow) a login was submitted, process the result --->
<cfif structKeyExists(stResult, "userid") AND len(stResult.userid)>

Expand Down

0 comments on commit f8ca5d2

Please sign in to comment.