<cfloginuser>

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

The Name of the User

password
string, required

The Password of the User

roles
any, required

The Roles of the user in comma separated form.

Examples

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

See also