i can't get it to work. i have amended my function as follows...
<cffunction access="public" name="changePassword" output="false"
displayname="Insert Security Data" hint="This method edits existing user">
<cfargument required="true" name="profileID" type="numeric"/>
<cfargument required="true" name="password" type="string"/>
<cfargument required="true" name="username" type="string"/>
<cfquery name="editClientPassword" datasource="#Request.App.dsn#"
password="#Request.App.DBpassword#" username="#Request.App.DBusername#">
UPDATE tblSecurity SET
username = <cfqueryparam value="#arguments.username#"
cfsqltype="CF_SQL_VARCHAR"/>,
password = <cfqueryparam value="#arguments.password#"
cfsqltype="CF_SQL_VARCHAR"/>
WHERE profileID = <cfqueryparam value="#arguments.profileID#"
cfsqltype="CF_SQL_INTEGER">
</cfquery>
<!--- update cflogin scope to allow for new username/password --->
<cfscript>
// store authenticate method of security object as roles
variable.
variables.roles=authenticate(arguments.username,arguments.password);
</cfscript>
<cflogin>
<cfloginuser name="#arguments.username#"
password="#arguments.password#" roles="#variables.roles#">
</cflogin>
</cffunction>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241266
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54