<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()#" />
Related System Properties / Environment Variables
- LUCEE_LOGINSTORAGE_ITERATIONS - Specifies the number of encryption iterations for loginstorage
Type: numeric, Default: false - LUCEE_LOGINSTORAGE_PRIVATEKEY - A private key used to encrypt loginstorage. If not defined, a simple base64 encoding is used
Type: string - LUCEE_LOGINSTORAGE_SALT - The salt used for encrypting loginstorage. If no salt is defined, a hardcoded salt is used
Type: string
See also
- GetAuthUser()
- GetUserRoles()
- IsUserInAnyRole()
- IsUserInRole()
- IsUserLoggedIn()
- <cflogin>
- <cflogout>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)