誰でもこのコードを確認して、変数 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>