Here is the function that the error is thrown in:

<cffunction name="authenticate" access="public" output="true" returntype="boolean">
<cfargument name="Username" type="string" required="Yes">
<cfargument name="Password" type="string" required="Yes">

<--- ERROR HAPPENS HERE EVEN IF I PUT A <CFABORT> HERE.

<cfquery name="user">
SELECT UserID AS ID, FirstName, LastName
FROM #_application.config.TABLEPREFIX#SecurityUsers
WHERE Username = <cfqueryparam value="#Arguments.Username#" cfsqltype="CF_SQL_VARCHAR"> AND
Password = <cfqueryparam value="#Arguments.Password#" cfsqltype="CF_SQL_VARCHAR">
</cfquery>

<cfif user.recordcount eq 1>
<cfquery name="permissions">
another query here.....
</cfquery>

<cfset instance.ID = user.ID>
<cfset instance.FirstName = user.FirstName>
<cfset instance.LastName = user.LastName>
<cfset instance.RolesList = ValueList(permissions.Name)>

<cfreturn true>

<cfelse>
<cfreturn false>
</cfif>

</cffunction>

Only Username and a Password arguments as you can see. Like I said, if I abort immediately within the function, I still get an error.

Cedric

> Without seeing the code I would say that the function in your CFC
> requires an argument named "name" and it can't be empty.
>
> HTH
>
> Cheers
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to