auth_pass
contains a recordset, not a number, so you cannot compare it to 1. You perhaps want auth_pass.recordCount
?
The best tool for examining the contents of a variable is <cfdump>
. That and familiairising yourself with the docs for the code you're using, eg: <cfprocresult>
, <cfstoredproc>
, <cfquery>
(the latter for details on query objects) if you run into problems and can't guess the solution.