Separate Public and Webtop Login Pages

Leave the webtop login as it is, but override the login page used for accessing restricted content.

./config/_serverSpecificVarsAfterInit.cfm

<cfset application.url.publiclogin = application.fapi.getLink(type="farLogin",view="displayPageStandard",bodyView="displayTypeBody") />

./webskin/farLogin/displayPageStandard.cfm

<cfsetting enablecfoutputonly="true">
<cfimport taglib="/farcry/core/tags/webskin/" prefix="skin" />
 
<cfoutput>
<html>
    <body>
        <skin:view typename="#stobj.typename#" objectid="#stobj.objectid#" webskin="#url.bodyView#" />
    </body>
</html>
</cfoutput>

<cfsetting enablecfoutputonly="false">

./webskin/farLogin/displayTypeBody.cfm

<cfsetting enablecfoutputonly="true">
<cfimport taglib="/farcry/core/tags/formtools/" prefix="ft" />
 
<cfset stLocal.stResult = application.security.processLogin() />
 
<cfif stLocal.stResult.authenticated>
    <cflocation url="#URLDecode(stLocal.stResult.loginReturnURL)#" addtoken="false" />
</cfif>
 
<ft:form>
    <ft:object typename="farLogin" lFields="username,password" prefix="login" legend="" focusField="username" />
    <ft:button value="Log In" />
</ft:form>
 
<cfsetting enablecfoutputonly="false">