Default Security
<cflogin>
Your login logic here
<--- Log in the user with appropriate credentials --->
<cfloginuser name="name" password="password" roles="ROLES HERE">
</cflogin>
<--- Some Real sample --->
<cflogin>
<cfif getUserService().authenticate(rc.username,rc.password)>
<cfloginuser name="#rc.username#" password="#rc.password#" roles="#getUserService().getRoles(rc.username)#" />
</cfif>
</cflogin>Last updated
Was this helpful?