<cfloginuser>

edit

Identifies an authenticated user to Lucee.

Specifies the user ID and roles. Used within a <cflogin> tag.

This tag cannot have a body.

This tag is also supported within <cfscript>

<cfloginuser name=string password=string roles=any >
Attribute Description
name
string, required
edit

The Name of the User

password
string, required
edit

The Password of the User

roles
any, required
edit

The Roles of the user in comma separated form.

Examples

edit
<cflogin>
	<cfloginuser name = "test" password = "password" roles = "user,admin,editor">
</cflogin>
<cfdump var="#getAuthUser()#" />
<cfdump var="#getUserRoles()#" />

Related System Properties / Environment Variables

See also