Code cleanup.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-02-01 20:04:39 +00:00
parent 879eceaa4e
commit 6c0e1b3014
2 changed files with 6 additions and 13 deletions

View File

@@ -155,23 +155,16 @@ public final class AuthenticationHelper
tx.commit(); tx.commit();
tx = null; // clear this so we know not to rollback tx = null; // clear this so we know not to rollback
// // store the User object in the Session - the authentication servlet will then proceed
// session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
//
// // Set the current locale
// I18NUtil.setLocale(Application.getLanguage(httpRequest.getSession()));
//
// // remove the session invalidated flag
// session.removeAttribute(AuthenticationHelper.SESSION_INVALIDATED);
I18NUtil.setLocale(Application.getLanguage(httpRequest.getSession()));
// store the User object in the Session - the authentication servlet will then proceed // store the User object in the Session - the authentication servlet will then proceed
session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user); session.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);
// Set the current locale // Set the current locale
I18NUtil.setLocale(Application.getLanguage(httpRequest.getSession())); I18NUtil.setLocale(Application.getLanguage(httpRequest.getSession()));
//
// remove the session invalidated flag // remove the session invalidated flag
session.removeAttribute(AuthenticationHelper.SESSION_INVALIDATED);
// remove the session invalidated flag
session.removeAttribute(AuthenticationHelper.SESSION_INVALIDATED); session.removeAttribute(AuthenticationHelper.SESSION_INVALIDATED);
// it is the responsibilty of the caller to handle the Guest return status // it is the responsibilty of the caller to handle the Guest return status

View File

@@ -103,7 +103,7 @@ public class LoginBean
public UserPreferencesBean getUserPreferencesBean() public UserPreferencesBean getUserPreferencesBean()
{ {
return preferences; return preferences;
} }
/** /**