cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1222722 - /cocoon/cocoon3/trunk/cocoon-shiro/src/main/java/org/apache/cocoon/shiro/rest/AbstractShiroLogin.java
Date Fri, 23 Dec 2011 16:19:29 GMT
Author: thorsten
Date: Fri Dec 23 16:19:29 2011
New Revision: 1222722

URL: http://svn.apache.org/viewvc?rev=1222722&view=rev
Log:
COCOON3-84
Add remeber-me feature in cocoon-shiro module
Reporter/Patch: Ajay Deshwal 
As a remark plese the issue for explanation how to use it.
Thanks adeshwal at becompany dot ch 

Modified:
    cocoon/cocoon3/trunk/cocoon-shiro/src/main/java/org/apache/cocoon/shiro/rest/AbstractShiroLogin.java

Modified: cocoon/cocoon3/trunk/cocoon-shiro/src/main/java/org/apache/cocoon/shiro/rest/AbstractShiroLogin.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-shiro/src/main/java/org/apache/cocoon/shiro/rest/AbstractShiroLogin.java?rev=1222722&r1=1222721&r2=1222722&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-shiro/src/main/java/org/apache/cocoon/shiro/rest/AbstractShiroLogin.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-shiro/src/main/java/org/apache/cocoon/shiro/rest/AbstractShiroLogin.java
Fri Dec 23 16:19:29 2011
@@ -53,6 +53,8 @@ public abstract class AbstractShiroLogin
     @RequestParameter
     private String password;
     @RequestParameter
+    private boolean rememberMe;
+    @RequestParameter
     protected String to;
     protected static final Logger LOG = LoggerFactory.getLogger(AbstractShiroLogin.class);
 
@@ -60,7 +62,7 @@ public abstract class AbstractShiroLogin
         // create a UsernamePasswordToken using the
         // username and password provided by the user
         UsernamePasswordToken token = new UsernamePasswordToken(username,
-                password);
+                password, rememberMe);
         Subject subject = SecurityUtils.getSubject();
         boolean error = true;
         try {



Mime
View raw message