mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||||
|
@@ -103,7 +103,7 @@ public class LoginBean
|
|||||||
|
|
||||||
public UserPreferencesBean getUserPreferencesBean()
|
public UserPreferencesBean getUserPreferencesBean()
|
||||||
{
|
{
|
||||||
return preferences;
|
return preferences;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user