cf_adminlogin

Click to Download

Description

Used on many Frontmedia designed sites. A tag that presents a user with a login page to restricted areas, requiring a username and password to access the page.
 

Usage

Add to the very top of any page that you wish to restrict access to.
Also requires that your database variables in application.cfm follow the following naming conventions:

request.dsn - datasource name
request.uid - datasource username
request.pwd - datasource password

Attributes

header Optional A full path to a logo to replace the Frontmedia default banner.
logout Optional Yes or No. If set to Yes will end the administration session. Default is No.
tablename Required The name of the database table used to query.
formfields Required A comma delimited list of username and password fields.
cf_adminlogin.loginuser Return A return variable that outputs the logged in username.
cf_adminlogin.loginaccess Return New output variable that outputs the value of the login access field. Type in the database field name into this attribute.
 

Featured Links