This new website that I'm developing is going to use CFLogin for the authentication, but my question is, how can I make some exception to the pages that does not require authentication?
I have the following tag in the application.cfm that calls the login page.
<cflogin idletimeout="1800">
<cfif CGI.QUERY_STRING IS "">
<cfset FormAction = #CGI.SCRIPT_NAME#>
<cfelse>
<cfset FormAction = "#CGI.SCRIPT_NAME#?#CGI.QUERY_STRING#">
</cfif>
<cfif NOT (IsDefined ("Form.txtEmail") AND IsDefined ("Form.txtPWD"))>
<cfinclude template="login.cfm">
<cfabort>
<cfelse>
<cfscript>
qryLogin = mjObj.LoginUser(#Form.txtEmail#, #Form.txtPWD#);
</cfscript>
<cfif qryLogin.RecordCount EQ '1'>
<cfloginuser name="#qryLogin.emp_email#" password="#qryLogin.emp_password#" roles="default">
<cfelse>
<cfset Invalid = "Yes">
<cfinclude template="login.cfm">
<cfabort>
</cfif>
</cfif>
</cflogin>
|
I have a folder and a couple of other pages that I need access before the user logs in.