Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ZkTokenBasedRememberMeServices.java
 
 {{IS_NOTE
 	Purpose:
 		
 	Description:
 		
 	History:
 		Thu Dec 28 09:26:17     2006, Created by Henri
}}IS_NOTE
Copyright (C) 2006 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.zkplus.acegi;
import  org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices;
import  javax.servlet.http.HttpServletRequest;

get rememberme from request's attribute rather than request's parameter.

Author(s):
Henri
public class ZkTokenBasedRememberMeServices extends TokenBasedRememberMeServices {
    protected boolean rememberMeRequested(HttpServletRequest requestString param) {
    	if (isAlwaysRemember()) {
    		return true;
    	}
    	
    	if (param == null) {
    		return false;
    	}
    	
    	Boolean yesno = (Booleanrequest.getAttribute(param);
    	return yesno != null && yesno.booleanValue();
    }
New to GrepCode? Check out our FAQ X