This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.auth.form-1.0.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-form.git

commit 33e89b6159e4cd82ea0ff9b9e6642c36cbe9dbee
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Sat Mar 6 19:28:25 2010 +0000

    SLING-1419 : Remove dependency to JCR
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/formauth@919825 
13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/formauth/FormAuthenticationHandler.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/formauth/FormAuthenticationHandler.java 
b/src/main/java/org/apache/sling/formauth/FormAuthenticationHandler.java
index eedca08..624aceb 100644
--- a/src/main/java/org/apache/sling/formauth/FormAuthenticationHandler.java
+++ b/src/main/java/org/apache/sling/formauth/FormAuthenticationHandler.java
@@ -493,7 +493,7 @@ public class FormAuthenticationHandler implements 
AuthenticationHandler,
             final AuthenticationInfo authInfo) {
 
         // get current authentication data, may be missing after first login
-        String authData = getCookieAuthData(authInfo.getCredentials());
+        String authData = 
getCookieAuthData((Credentials)authInfo.get(AuthenticationInfo.CREDENTIALS));
 
         // check whether we have to "store" or create the data
         final boolean refreshCookie = needsRefresh(authData,
@@ -596,7 +596,7 @@ public class FormAuthenticationHandler implements 
AuthenticationHandler,
 
         final AuthenticationInfo info = new AuthenticationInfo(
             HttpServletRequest.FORM_AUTH, userId);
-        info.setCredentials(cookieAuthCredentials);
+        info.put(AuthenticationInfo.CREDENTIALS, cookieAuthCredentials);
 
         return info;
     }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to