On 17.12.2010 08:52, Jan Haderka wrote:

How about calling MgnlContext.login(user) ? Would that help?

Oh, sorry..
It was my fault, I provided a mocked MgnlUser, without implementing well 2 methods of the User interface. While doing login it checked also the language and other things, so my "not yet implemented" exceptions thrown by those methods were the cause of the login fails.

It just works in both form:

1) final LoginResult loginResult = new LoginResult(LoginResult.STATUS_SUCCEEDED, mgnlUser);
   LoginResult.setCurrentLoginResult(loginResult);

2) MgnlContext.login(mgnlUser);

Thanks to provide the simplest solution :-)

Matteo



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to