With the new security I saw that all the global variables modification done by authentication solution are not kept.
For example if I have a global variable "user_age" and I fill it during the authentication loop(in wich I can retrive the user info from db to evaluate the login),so after
the command "security.login()" ,when the main solution was been loaded,if I try to check the content of my global variable so I'll find it equal to null.
flow:globals variable named 'UserInfo'
solution with type login:- Code: Select all
.
.
security.authenticate('authSolution","authMethod",[user,pwd])
.
..
solution with type authentication:- Code: Select all
globals.UserInfo = new Object()
globals.UserInfo.age = dataset.getValue(x,y)
globals.UserInfo.address = dataset.getValue(x,y)
if(pwd == dataset.getValue(x,y))
security.login(user,user,['users'])
.
.
Main Solution:- Code: Select all
application.output(globals.UserInfo.age)
//the result into the console is
null
offcourse if I try to inspect the variable 'UserInfo' into the authenticator solution with a break point the variable is filled correctly.
Is this normal? And if yes: does exist a way to don't lose the informations kept into the authenticator solution (in this way I haven't to retrive the info twice,one for the authentication and one for save the user information).