<cfset userLogin = application.admin.login(users_name=form.username,users_pass=form.password) />
<cfdump var="#userLogin#" label="user login data output" expand="no" />
<cfif len(userLogin.users_name) AND len(userLogin.users_pass)>
<cfloginuser name = "#userLogin.users_name#" password ="#userLogin.users_pass#" roles = "#userLogin.users_admin#" />
<cfset invalid_login = 1>
The code (above) throws the following error:
Error casting an object of type coldfusion.runtime.Struct cannot be cast to coldfusion.runtime.Scope to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
coldfusion.runtime.Struct cannot be cast to coldfusion.runtime.Scope
I can't for the life of me figure out why... Any help would be appreciated.