How can I find out what is being passed as the ROLES attribute of my
CFLOGINUSER?
 
 
------------------------------------
 
Login page:
 
 <CFQUERY NAME="GetUser" DATASOURCE="#request.DSN#">
      SELECT USERS.UserID, USERS.UserFirstName, USERS.RoleID,
Roles.RoleName
      FROM USERS, Roles
      WHERE Users.RoleID = Roles.RoleID
   AND UserName    = '#Form.UserName#'
        AND Password = '#Form.Password#'
    </CFQUERY>
    
<snip>..............
 
 

      <CFLOGINUSER
        NAME="#GetUser.UserID#,#GetUser.UserFirstName#"
        PASSWORD="#FORM.Password#"
        ROLES="#GetUser.RoleName#">            
 
------------------------------------
 
 
ADMIN Index Page:
 
 
 
<CFSET UserID = ListFirst(GetAuthUser())>
<CFSET UserName = ListRest(GetAuthUser())>
   <blockquote> 
                <h1>Intranet and Web Site Administration</h1>
                <h2><cfoutput> #getAuthUser()# </cfoutput></h2>
                <!--- If current user is an administrator, allow user
--->
                <!--- to choose which contact to show order history for
--->
                <CFIF IsUserInRole("Admin")>
                  <h2>Administrator Functions: </h2>
    </cfif>
 
------------------------------------
 
The data for the record is: 
UserID=6
UserName=Candace
RoleID = 1
RoleName =Admin
 
 
 
So what I am trying to figure out is what the cfif aboicve where I use 
IsUserInRole("Admin")
it's comes back false.
 
 
 
TIA
 
Candace K. Cottrell, Web Developer 
The Children's Medical Center 
One Children's Plaza 
Dayton, OH 45404 
937-641-4293 
http://www.childrensdayton.org 
 
 
[EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to