I imagine that you could use a controller function or the generic query to assist in setting a query that searches for your user name and password. In other words, your solution is as viable as the next.
I am glad it works. From a Reactor perspective, how can we really help here? You use the generic list that recieved a user name and a password and it returned x number of results.
Seems straight forward and probably a good example where to use a generic list besides scaffolding. Again though, this is good for MG users. =)
Teddy
On 10/10/06, g davis <[EMAIL PROTECTED]> wrote:
hi,
First of all I apologize if I have been posting too many newbie questions
(and most about unity rather then reactor)... If this is not the appropriate
forum please let me know.
... the documentation for the generic database messages invariably refers to
the VIEWS accessing queries/objects returned. Is there any reason that the
controller shouldn't access those return values....
so after a call to a genericList of my User table using email and password
as criteria I want to add a function in my controller such as
<cffunction name="attemptLogin" access="public" returnType="void"
output="true">
<cfargument name="event" type="any">
<cfset var loginResults = arguments.event.getValue("userQuery")>
<cfif loginResults.recordcount>
<cfset arguments.event.addResult("success") />
<cfelse>
<cfset arguments.event.addResult("failure") />
</cfif>
</cffunction>
The code works but I just want to make sure that I am not missing anything.
thanks,
Gabriel
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
<cf_payne />
Blog: http://cfpayne.wordpress.com/
Atlanta CFUG: http://www.acfug.org
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
