Update of
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community
In directory
james.mmbase.org:/tmp/cvs-serv1202/community/src/java/com/finalist/cmsc/services/community
Modified Files:
CommunityServiceImpl.java
Log Message:
Modification method signature loginUser
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community
Index: CommunityServiceImpl.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/CommunityServiceImpl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- CommunityServiceImpl.java 30 Jan 2008 11:39:32 -0000 1.6
+++ CommunityServiceImpl.java 30 Jan 2008 14:07:39 -0000 1.7
@@ -38,6 +38,10 @@
*/
public class CommunityServiceImpl extends CommunityService {
+ public static final String ACEGI_SECURITY_FORM_USERNAME_KEY =
"j_username";
+ public static final String ACEGI_SECURITY_FORM_PASSWORD_KEY =
"j_password";
+ public static final String ACEGI_SECURITY_LAST_USERNAME_KEY =
"ACEGI_SECURITY_LAST_USERNAME";
+
private static Log log = LogFactory.getLog(CommunityServiceImpl.class);
private AuthenticationManager authenticationManager;
@@ -49,7 +53,10 @@
ac.getAutowireCapableBeanFactory().autowireBeanProperties(this,
Autowire.BY_NAME.value(), false);
}
- public boolean loginUser(ActionRequest request, ActionResponse
response, String userName, String password) {
+ public boolean loginUser(ActionRequest request, ActionResponse
response) {
+ String userName =
request.getParameter(ACEGI_SECURITY_FORM_USERNAME_KEY);
+ String password =
request.getParameter(ACEGI_SECURITY_FORM_PASSWORD_KEY);
+
if (userName == null) {
userName = "";
}
@@ -58,7 +65,7 @@
}
UsernamePasswordAuthenticationToken authRequest = new
UsernamePasswordAuthenticationToken(userName, password);
// Place the last username attempted into PortletSession for views
-
request.getPortletSession().setAttribute("ACEGI_SECURITY_LAST_USERNAME",
userName);
+
request.getPortletSession().setAttribute(ACEGI_SECURITY_LAST_USERNAME_KEY,
userName);
boolean loginSuccesfull = false;
try {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs