We've got a login form on several sites that clients use to access their
protected directories.
We're using the same code on a different ISP and getting the following
error message.
Security: The requested template has been denied access to cfregistry.
The following is the internal exception message: access denied
(coldfusion.tagext.GenericTagPermission cfregistry)
===================
Application.cfm :
<cfapplication name="MyApp" clientmanagement="YES"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,15,0)#"
applicationtimeout="#CreateTimeSpan(0,2,0,0)#">
<CFPARAM NAME="session.allowin" DEFAULT="false">
<cfif session.allowin NEQ "true">
<cfif ListLast(CGI.SCRIPT_NAME, "/") EQ "login.cfm">
<cfelseif ListLast(CGI.SCRIPT_NAME, "/") EQ "login_process.cfm">
<cfelseif ListLast(CGI.SCRIPT_NAME, "/") EQ "index.cfm">
<cfelse>
<script>
self.location="login.cfm";
</script>
</cfif>
</cfif>
Login_process.cfm :
<cfquery name="qVerify" datasource="myDB">
SELECT user_name, user_pass
FROM users
WHERE user_name = '#user_name#'
AND user_pass = '#user_pass#'
</cfquery>
<cfif qVerify.RecordCount>
<cfset session.allowin = "True">
<cfoutput query="qVerify">
<script>
self.location="/#user_name#";
</script>
</cfoutput>
<cfelse>
<script>
alert("Your login information is not correct, please try
again!!!");
self.location="Javascript:history.go(-1)";
</script>
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190751
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54