posted 17 years ago
Hello there!
I am in the process of integrating Jforum with my web application.
When I set up sso implementation , I couldn't login into the Admin Control panel.
So I thought of another approach.
can I directly configure session in Jforum, as it it given in configureUserSession (UserSession userSession, User user) in ControllerUtils.java ?
userSession.setAutoLogin(true);
SessionFacade.setAttribute("logged", "1");
I18n.load(user.getLang());
Can anyone please tell me What is the step to do configure it in my application code?
which is
if (pwd.equals(lf.getPassword())) {
User user = populateUserInfo(conn, userId, pwd);
session.setAttribute(PortalConstants.USER, user);
PublishAdvAction pub = new PublishAdvAction();
request.setAttribute(PortalConstants.ACTION, "Display");
ActionForward am = pub.execute(mapping, form, request,
response);
return am;
}
in my LoginAction.java
All I need is when a user log into my application , the username is to be set in Jforum's session.
With the help of other disscussion given in this forum I tried to understand
checkAutoLogin() method and also TestCaseUtils.java.
But I couldn't figure out how it can be called in my LoginAction.java
Can anyone please tell me What is the step to do configure it in my application code?
thanks,
Razia
[originally posted on jforum.net by razia]