谁能查看此代码并告诉我为什么我收到变量 ID 未定义错误?
<cffunction name="login" access="public" returntype="void">
<cfargument name="rc" type="struct" required="true">
<cfset user = getUserService().login(arguments.rc.Username,arguments.rc.password)>
<cfif isDefined('User')>
<cfset session.auth = structNew()>
<cfset session.auth.isLoggedin = "yes"/>
<cfset session.auth.user = user />
<cfset session.auth.id = id>
<cfset session.auth.username = UserName />
<cfset session.auth.password = password />
<cfelse>
<cfset rc.message = createMessage('error','','entered password is wrong')>
<cfset variables.fw.redirect('login.default','message')>
</cfif>
<cfset variables.fw.redirect('')>
</cffunction>