AnsweredAssumed Answered

login problem flex with alfresco

Question asked by gokceng on Jul 23, 2010
I'm using flex for the client side of alfresco. For authentication I'm using default login function that is:


var url:String = ConfigService.instance.url + "/alfresco/service/api/login";
var webScript:WebScriptService = new WebScriptService(url, WebScriptService.GET, onLoginSuccess, onLoginFailure, false, false);
// Build the parameter object
var params:Object = new Object();
params.u = "admin";
params.pw = "admin";
// Execute the web script
webScript.execute(params);

but if it is the first time launching the system I get authentication error, when I refresh the page and try to login, I succeed. Isn't that strange?

Outcomes